reference tasks

Task 3 : Dynamic Scripting

Task ID           TK 000012

Release           //ReferenceTasks/Generic Tasks

Task Title           Dynamic Scripting

Description

This task demonstrates the feature of making UI controls dynamic. This would mean that you can control the behaviour of the control at the time of execution dynamically depending on the value passed into it.


Pre-configured

For this example, 1. A Web App “Clear_trip” for the site -cleartrip.com has been created in UI learn. 2. A Module - ‘New Module’ has been created under this app 3. Origin, Destination, DepartDate and Search flights, Flight controls are familiarized. 4. In Jiffy design, the UI control ‘Flights’ found under Repository – UI controls has been edited to make the following changes: a. Select ‘Type’ and change to DYNAMIC from STATIC b. Create a variable ‘flight’ as STRING

Task DESIGN

referenceTasks-Dynamic Scripting-design

The task consists of: WebUI node in it.

  1. For the Flight control at the UI control Page at the Repository menu, ‘Dynamic Script‘ checkbox must be checked
  2. Python script is written to return the amount for the flight name given as a value for the dynamic control ‘flight’. referenceTasks-Dynamic Scripting-dynamicScript

1. Web Node

Properties Window Value
1. Web App Configuration ClearTrip_web
Edit UI Controls / Expression Input Varaibles UI Actions Output Variables
1. SET SCREEN NEW MODULE. - - -
2. UIEVENT Origin (similar steps has to be performed for Destination, DepartDate Input - BLR , BOM, 25/03/19 respectively
3. UIEVENT SearchFlights - Click -
4. UIEVENT Flights Air India / IndiGo Get Text IndiGo_price[0]
5. Default Expression DELAY In Seconds (Number in Seconds) - -

*Last step is optional

Did you find what you were looking for?

Automation Analytics and AI in a box

Contact Us

HfS Hot Vendor

Option3's Automation capabilities featured in HfS Research's Hot Vendors List for Q3, 2018

Access your copy here