Hybrid PDF
Hybrid PDF
every page contains webobjects/webelement and method/feature Collection of all web object/web
elements is called object reportisty
Login.java- this will extend testbase class and,define page factory like @Findby(name="username"),
webelement username,validatloginpagetitle()
login(string un,string pwd) method on clicking the submit buttton this would move to homepage so
this mentod will return new homepage()
logintest.java- create constructor and call superclass consturction using super(), @beformethod- call
intialization(). need to create object of testbase class
homepagetest.java- create construction and call superclass consturction using super(),create login
object (Loginpage loginpage)
beforemethod- call initialization, call login() method to reach on homepage so need to define
homepageobject
write properfile read code in construtor, initialization() will contain to launch the url while reading
driverinfo, url from prop file
4.com.qa.config-config.properties-url,username,pwd,browser,environmentvariable
5.com.qa.testdata-testdata layer-testdate.xlsx
6. com.qa.utils-Testutils- screenshot,sendmail,commonutility,log4j
this is also called page chaining model as all the pages are interconnected. for example homepage is
the landing page of login
Maven is build management tool and if we need to download any api dependency than we can sear
"selenium maven","testng maven" and put them in pom.xml
<suitename>
<testname>
<classname>
------------------------------------------------------
Log- capturing all the activities going on during the exectuion of program.
where to create- inside the resources source folder (create log4j.properties files)
#Root category-debug,console,file