File-> New-> Others->Select Maven Project from Maven Folder->Click Next->Tick on Create a Simple Project(Skip archetype Selection)
Group ID:com.TestAutomation
Add Signature in Group ID
Artifact ID: TestAutomation
Open POM File:
Add Properties
<properties>
<project.build.sourceEncoding>UFT-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compile.target>1.8</maven.compile.target>
</properties>
Add Required Dependencies :
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>
<dependency>
Then Create Packages & Classes for Page Objects(PO) and TC (Test Cases)
POC - Proof of Concepts
Every E-Commerce site has two Front ends one is Store Front and second is Administration Panel
Webdriver driver =new Chromedriver();
Webdriver is an Interface
Relation between chromedriver and Webdriver is Chrome Driver is Implementing the Webdriver
After all POM done then Create a Runner.XML File src/test/respurces
POM is application page map with java class.
POM has different Approaches.
e.g 1. By using page Factory
No comments:
Post a Comment