1.We have a n existing Test Ng framework in eclipse
2.we have a maven project structure which has many packages like properties, utility,excel,testbase
3. we keep all our page objects, browser and url information in properties file and read from there using
Properties obj = new Properties();
FileInputStream objfile = new FileInputStream(System.getProperty("user.dir")+"\\src\\ObjectRepo\\objects.properties");
obj.load(objfile);
4. we keep all our xl files in excel package and read from there
5.all the function libraries in utility files
I will create local work space what module i am going to work on -I will check out the module from svn
add required xls files
add the utility files to read and write data
create script to test the functionality by adding assertions ( assert.assetequal,not,true,null) and with different sets of data using data provider...
run all the steps from testng.xml
generate the test report
we can use ant/maven to run from cmd prompt
ant: build.xml ant clear,compile,run, reports
mvn: main/test : in test we keep files: import the project into eclipse,get jar files by mvn compile in to local,mvn test, mvn test site for run and reports
pom.xml all dependencies we add
we can make .bat file and keep all the commands in there and run
SVN: once done, share or check into svn
2.we have a maven project structure which has many packages like properties, utility,excel,testbase
3. we keep all our page objects, browser and url information in properties file and read from there using
Properties obj = new Properties();
FileInputStream objfile = new FileInputStream(System.getProperty("user.dir")+"\\src\\ObjectRepo\\objects.properties");
obj.load(objfile);
4. we keep all our xl files in excel package and read from there
5.all the function libraries in utility files
I will create local work space what module i am going to work on -I will check out the module from svn
add required xls files
add the utility files to read and write data
create script to test the functionality by adding assertions ( assert.assetequal,not,true,null) and with different sets of data using data provider...
run all the steps from testng.xml
generate the test report
we can use ant/maven to run from cmd prompt
ant: build.xml ant clear,compile,run, reports
mvn: main/test : in test we keep files: import the project into eclipse,get jar files by mvn compile in to local,mvn test, mvn test site for run and reports
pom.xml all dependencies we add
we can make .bat file and keep all the commands in there and run
SVN: once done, share or check into svn
No comments:
Post a Comment