how to serially execute selenium maven project

0 votes

1. Web application automation as Selenium + TestNG +Java maven project

have three packages : core, pages and tests

i. core for base functions /methods

ii. Pages/class:-  for different methods to access web pages of same application

say :- Login_page , Home_page, contact_page, settings_page, MainActivity_page which start activity based on values from Home ,contact and settings page.

iii. Tests :/classes:- for each page there will be corresponding test class

say :- Login_Test , Home_test, contact_test, settings_test, MainActivity_test

Current behaviour

i am using page object model so each test class will open as separate instance 

 Behaviour i need

i want to execute Main activity class methods as a continuation of other classes

Oct 23, 2020 in Java by Belgi
• 120 points
433 views

1 answer to this question.

0 votes

Hi, @Beigi,

Do check you have all the pre-requirements done.

Here are the steps to install Maven through the command line in this Selenium Maven tutorial:

  1. Step 1: Download & Install Java. ...
  2. Step 2: Set Up Java Environment Variable. ...
  3. Step 3: Download Maven and Set Up Maven Environment Variable. ...
  4. Step 4: Updating the Path Variable. ...
  5. Step 5: Testing the Maven Installation.
answered Oct 27, 2020 by Nisha

Related Questions In Java

0 votes
1 answer

How to add local jar files to a Maven project?

Hello @kartik, You can add local dependencies directly ...READ MORE

answered Jul 28, 2020 in Java by Niroj
• 82,880 points
2,082 views
+5 votes
4 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,450 points

edited Nov 7, 2018 by Omkar 79,585 views
+2 votes
1 answer

How do I ask the Selenium-WebDriver to wait for few seconds in Java?

There are two ways to wait: explicit ...READ MORE

answered Dec 19, 2018 in Java by Daisy
• 8,120 points

edited Dec 19, 2018 by Daisy 599 views
0 votes
1 answer
+2 votes
0 answers

How to add external Jar in modular JavaFX 11 project correctly?

I'm using Java 11 and JavaFX 11. ...READ MORE

Aug 8, 2019 in Java by invzbl3
5,183 views
0 votes
1 answer

How to import android project as library and NOT compile it as apk?

Hello, In projLib's build.gradle file, you'll see a statement ...READ MORE

answered May 26, 2020 in Java by Niroj
• 82,880 points
1,343 views
0 votes
1 answer

How can I create an executable JAR with dependencies using Maven?

<build> <plugins> <plugin> ...READ MORE

answered Apr 26, 2018 in Java by sophia
• 1,400 points
995 views
0 votes
2 answers

How can we add the local JAR files to the Maven Project in Java?

Firstly I would like to give credit ...READ MORE

answered Nov 5, 2018 in Java by Sushmita
• 6,910 points
10,395 views
+1 vote
1 answer

How to tell the Maven to use the latest version of dependency in Java?

If you always want to use the ...READ MORE

answered Jun 26, 2018 in Java by Sushmita
• 6,910 points
14,747 views
0 votes
1 answer

Including dependencies in a jar with Maven

You can do this using the maven-assembly-plugin ...READ MORE

answered Jul 21, 2018 in Java by samarth295
• 2,220 points
14,895 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP