Skip to content

Instantly share code, notes, and snippets.

@NickBaynham
Created March 3, 2020 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickBaynham/a88a9748b4b3e32130f24eb699f4feb5 to your computer and use it in GitHub Desktop.
Save NickBaynham/a88a9748b4b3e32130f24eb699f4feb5 to your computer and use it in GitHub Desktop.
Test for Registration Workflow that uses a Workflow Object instead of Page Objects directly
package selfHealingExamples.tests.registration;
import framework.pageObjects.RegistrationForm;
import org.testng.annotations.Test;
import selfHealingExamples.workflows.RegistrationWorkflow;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
public class RegistrationWorkflowTest extends BaseTest {
@Test
public void TestRegistrationWorkflow() {
RegistrationWorkflow registrationWorkflow = new RegistrationWorkflow(getDriver());
assertTrue(registrationWorkflow.completeRegistration(
"John",
"Jones",
"JJ",
"Alberqurque",
"NM",
"87109",
false));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment