Wednesday, January 15, 2020

Page Object Model


Config
chromedriver.exe
config.properties
chromedrivername=webdriver.chrome.driver
browsername=chrome
chromdriverpath=D:\\Vision_B_01_proj\\VisionIT_7\\TestNGFW\\src\\test\\java\\com\\ config\\chromedriver.exe
gickodrivername=webdriver.gecko.driver
gickodriverpath= E:\\QaWork\\Guru99\\src\\main\\java\\data\\geckodriver.exe

po
Login_po.java
PO_AddToCart.java
PO_Search.java
Search_po.java

runner
suiteRunner.xml
<suite name="AddItmeCartSuite" thread-count="2" parallel="classes">
<!-- <listeners>
<listener
class- name="SeleInterviewQuitions.rertyFailedTestCases.AnnotationAnalyzer" />
</listeners> -->
<test name="AddItemToCartTest">
<classes>
<class name="com.tc.TC_SearchProduct"></class>
<!-- <class name="Testpages.NewCustomerRegTest"></class> -->
</classes>
</test>
</suite>


tc
TC_Seacrh.java
TC_SearchProduct.java
Tc_AddToCart.java

testdata
LoginWorkbook.xlsx

utility
Constants.java
package com.utility;

public interface Constants {
public String browserName="chrome";

}

Log4j_Logger.java

Utilitys.java



No comments:

Post a Comment