public abstract class SetupCDTest extends Object
Modifier and Type | Field and Description |
---|---|
protected static User |
adminUser |
static Config |
config |
protected static User |
designerUser
USERS
|
protected static com.relevantcodes.extentreports.ExtentTest |
extendTest |
protected com.relevantcodes.extentreports.ExtentReports |
extentReport |
protected static User |
governorUser |
static org.apache.log4j.Logger |
logger |
protected static User |
opsUser |
protected static User |
productManagerUser |
static String |
REPORT_FOLDER |
static String |
SELENIUM_NODE_URL |
protected static User |
testerUser |
Constructor and Description |
---|
SetupCDTest() |
public static org.apache.log4j.Logger logger
public static final String REPORT_FOLDER
public static final String SELENIUM_NODE_URL
protected static User designerUser
protected static User adminUser
protected static User testerUser
protected static User governorUser
protected static User opsUser
protected static User productManagerUser
public static Config config
protected com.relevantcodes.extentreports.ExtentReports extentReport
protected static com.relevantcodes.extentreports.ExtentTest extendTest
protected abstract UserRoleEnum getRole()
public static String getScreenshotFile()
public static void setScreenshotFile(String screenshotFile)
public static com.relevantcodes.extentreports.ExtentTest getExtendTest()
public OnboardCSVReport getCsvReport()
public void setBrowserBeforeTest(Method method) throws Exception
Exception
public void quitAfterTest(org.testng.ITestResult result) throws Exception
Exception
public void afterSuite()
public static void main(String[] args)
protected static String setUrl()
protected UserCredentials getUserCredentialsFromFile(String userRole) throws Exception
Exception
public UserCredentials updateUserUserId(String role) throws Exception
Exception
protected void loginToSystem(UserCredentials credentials, UserRoleEnum role) throws Exception
Exception
public static String getUrl()
public static void setUrl(String url)
public static Config getConfig()
public void loginToSystem(UserRoleEnum role)
public void loginWithUser(UserRoleEnum role)
public User getUser()
protected void setBrowserBeforeTest(UserRoleEnum role)
public User getUser(UserRoleEnum role)
protected void quitAndReLogin(UserRoleEnum role) throws Exception
Exception
protected int randomNumber()
Copyright © 2017. All rights reserved.