Skip to content

Get Wiki Page Time

gcvfi edited this page Mar 10, 2020 · 3 revisions

Back to Run loop | AIQ Commands | Home


Note: Draft content, work in progress, not yet reviewed or verified.


Summary

This example demonstrate how to pass input and output variable between a Flow and the Test Case.

Detail

This is an example showing how to pass arguments between a Test Case and Flow. The test case set a city name in variable ${var_city}. The flow Get_Wiki_Page_Time use that variable to search Google and go to the cites Wikipedia page. And extract last update information and store in variable ${var_page_update}. After execution of the flow, test case display content variable ${var_page_update} . Here variable ${var_city} act like an input variable to the flow. And variable ${var_page_update} act like output variable from the flow.

Flow Block

Flow : Get_Wiki_Page_Time

Step Data
_xl{${var_city} & " Wiki"} as var_city_wiki
_xl{${var_city} & " - Wikipedia"} as var_city_wiki_link
open website http://google.com
enter text ${var_city_wiki}
hit enter
wait 5 sec
click on ${var_city_wiki_link}
Wait 2 sec
Save _css{"#footer-info-lastmod"} as var_page_update
open website http://google.com
Enter text ${var_page_update}

Test Case

Step Data
save it as var_city London
Run ${Get_Wiki_Page_Time}
open website http://google.com
Enter text ${var_page_update}
wait 5 sec

See also

Clone this wiki locally