Search code examples
gherkinnoraui

NoraUI - Comparing Value read on GUI


In my scenario, I have the need to save value taken from the GUI at the one point during the scenario, and comparing them multiple times until the end of the scenario.

Is there a method in NoraUI which permit to save value during a step at one point in the scenario, and using them in another steps later in the scenario ?


Solution

  • Here's how save a backup in context:

    And I save the value of 'demo.DemoPage-input_text_field'.
    

    Here's how to save a backup in the "title" column of the output file:

    And I save the value of 'demo.DemoPage-big_title' in 'title' column of data output provider.
    

    Here is how to use a backup saved in context (If in the context there is a value corresponding to the key "demo.DemoPage-big_title", then it sets this value, otherwise it sets the raw value "demo.DemoPage-big_title"):

    When I update text 'demo.DemoPage-input_text_field' with 'demo.DemoPage-big_title'.
    

    You can find all sample here