Passing a manipulated date to a keyword test in TestComplete
- 4 years ago
1. make sure that the script generates the desired date == returns that date output as a result of running the script routine (probably as a string data type)
2. drag that script routine into your keyword test
3. drag in an "on screen action" into the keyword test workspace immediately below the "run script routine"
3.1 Follow the new pop up window to "drag&drop" or "ctrl-shift-a" select the on screen element where you wish to input the date
3.2 You will probably want to use the "SetText" or "Keys" operations to input the desired date into your desired on screen element. (over simplified explanation: Keys == actual key presses, whereas SetText == literally sets the text)
3.3 Now you need to provide the value that you want to either "SetText" or "Keys" - should be by default set to Constant Text mode, but you can edit this to be "Last Operation Result" (select the three dots on the farthest right hand side of the value panel, click around until you see that option).