Package co.nz.getskills.auto.appsteps
Class DataSteps
- java.lang.Object
-
- co.nz.getskills.auto.appsteps.DataSteps
-
public class DataSteps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DataSteps(TestContext testContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidi_check_stored_value(java.lang.String pathToJson, java.lang.String expectedValue)voidi_click_element_using_dynamic_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_click_element_using_dynamic_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name)voidi_fill_element_locator_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_fill_element_locator_stored_data_on_url(java.lang.String name)voidi_fill_element_parallel_locator_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_hover_mouse_on_element_using_dynamic_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_hover_mouse_on_element_using_dynamic_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name)voidi_input_stored_value(java.lang.String pathToJson, java.lang.String locatorPath)voidi_see_element_locator_stored_data(java.lang.String name)voidi_see_element_locator_stored_data_parallel(java.lang.String name)voidi_sendkeys_element_locator_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_sendkeys_element_locator_stored_data_parallel(java.lang.String locatorPath, java.lang.String name)voidi_store_data_element_locator(java.lang.String name, java.lang.String locatorPath)voidi_store_data_element_locator_from_regex(java.lang.String key, java.lang.String locatorPath)voidi_store_data_element_locator_from_regex_parallel(java.lang.String key, java.lang.String locatorPath)voidi_store_data_element_locator_parallel(java.lang.String name, java.lang.String locatorPath)voidi_store_data_value(java.lang.String name, java.lang.String value)voidi_store_parallel_data_value(java.lang.String name, java.lang.String value)voidi_store_text_for_element(java.lang.String locatorPath)voidi_store_the_value(java.lang.String fieldName)voidi_store_the_value_using_patterns(java.lang.String fieldName, java.lang.String regex)voidi_verify_element_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name)voidi_verify_element_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name)voidi_verify_parallel_store_data_value(java.lang.String value, java.lang.String name)voidi_verify_store_data_value(java.lang.String value, java.lang.String name)
-
-
-
Constructor Detail
-
DataSteps
public DataSteps(TestContext testContext)
-
-
Method Detail
-
i_store_text_for_element
@When("^I store the text for element (.+)$") public void i_store_text_for_element(java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_data_element_locator
@When("^Stored Data - I store data (.+) with text of element with locator (.+)$") public void i_store_data_element_locator(java.lang.String name, java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_data_element_locator_parallel
@When("^I store data (.+) with text of element with locator (.+)$") public void i_store_data_element_locator_parallel(java.lang.String name, java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_data_value
@When("^Stored Data - I store data (.+) with value (.+)$") public void i_store_data_value(java.lang.String name, java.lang.String value) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_parallel_data_value
@When("^I store data (.+) with value (.+)$") public void i_store_parallel_data_value(java.lang.String name, java.lang.String value) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_verify_store_data_value
@When("^Stored Data - I verify value (.+) with stored data (.+)$") public void i_verify_store_data_value(java.lang.String value, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_verify_parallel_store_data_value
@When("^I verify value (.+) with stored data (.+)$") public void i_verify_parallel_store_data_value(java.lang.String value, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_fill_element_locator_stored_data
@When("^Stored Data - I fill input element with locator (.+) with stored data (.+)$") public void i_fill_element_locator_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_fill_element_locator_stored_data_on_url
@When("^I go to url mentioned in stored data (.+)$") public void i_fill_element_locator_stored_data_on_url(java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_fill_element_parallel_locator_stored_data
@When("^I fill input element with locator (.+) with stored data (.+)$") public void i_fill_element_parallel_locator_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_data_element_locator_from_regex
@When("^Stored Data - I store numbers from string in (.+) from element (.+)$") public void i_store_data_element_locator_from_regex(java.lang.String key, java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_data_element_locator_from_regex_parallel
@When("^I store numbers from string in (.+) from element (.+)$") public void i_store_data_element_locator_from_regex_parallel(java.lang.String key, java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_see_element_locator_stored_data
@When("^Stored Data - I can see contains text from stored data (.+)$") public void i_see_element_locator_stored_data(java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_see_element_locator_stored_data_parallel
@When("^I can see contains text from stored data (.+)$") public void i_see_element_locator_stored_data_parallel(java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_sendkeys_element_locator_stored_data
@When("^Stored Data - I send keys to input element with locator (.+) with stored data (.+)$") public void i_sendkeys_element_locator_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_sendkeys_element_locator_stored_data_parallel
@When("^I send keys to input element with locator (.+) with stored data (.+)$") public void i_sendkeys_element_locator_stored_data_parallel(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_verify_element_locator_with_stored_data
@When("^Stored Data - I verify element (.+) with stored data (.+)$") public void i_verify_element_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_verify_element_locator_with_stored_data_parallel
@When("^I verify element (.+) with stored data (.+)$") public void i_verify_element_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_the_value
@When("^I store the value for element (.+) in data json file with same name$") public void i_store_the_value(java.lang.String fieldName) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_store_the_value_using_patterns
@When("^I store the value of (.+) using pattern (.+)$") public void i_store_the_value_using_patterns(java.lang.String fieldName, java.lang.String regex) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_check_stored_value
@When("^I check the stored value of field with path (.+) is equal to the expected value (.+)$") public void i_check_stored_value(java.lang.String pathToJson, java.lang.String expectedValue) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_input_stored_value
@When("^I fill stored value of field with path (.+) to input field (.+)$") public void i_input_stored_value(java.lang.String pathToJson, java.lang.String locatorPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_click_element_using_dynamic_locator_with_stored_data
@When("^Stored Data - I click replaceable element (.+) with stored data (.+)$") public void i_click_element_using_dynamic_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_click_element_using_dynamic_locator_with_stored_data_parallel
@When("^I click replaceable element (.+) with stored data (.+)$") public void i_click_element_using_dynamic_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_hover_mouse_on_element_using_dynamic_locator_with_stored_data
@When("^Stored Data - I hover mouse on replaceable element (.+) with stored data (.+)$") public void i_hover_mouse_on_element_using_dynamic_locator_with_stored_data(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_hover_mouse_on_element_using_dynamic_locator_with_stored_data_parallel
@When("^I hover mouse on replaceable element (.+) with stored data (.+)$") public void i_hover_mouse_on_element_using_dynamic_locator_with_stored_data_parallel(java.lang.String locatorPath, java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
-