I am currently testing a web application by using Selenium (with Java) and Cucumber. I know how to create using the . Like in this example where a user logs in:

public void logInUser(){
loginPage.usernameField.click();
loginPage.usernameField.sendKeys([email protected]“);
loginPage.passwordField.click();
loginPage.passwordField.sendKeys(“password”);
loginPage.logInBtn.click();
}

How may I do the same thing using only the , and not the UI? Are there any tutorials for how to create using only the ?



Source link https://www.reddit.com/r//comments/9aycep/how_to__test_steps_that_use_only_api_not_ui/

LEAVE A REPLY

Please enter your comment!
Please enter your name here