Forum Discussion
Hi, thanks for your answer.
I've tried to assign the asset ID to a variable value, both by trying to capturing it as an object property and an onscreen object. Problem here is that TestComplete doesn't appear to "grasp"/recognise this as a value and thus nothing appears when I'm trying to print this value out to a log.
Also - I need to use this value throughout the test but when the test is re-run, a new ID value is going to appear and this value should replace the previous value used (hope this makes sense) - and is that possible if a such variable value is defined as an object property/onscreen object?
Can you provide an Object Browser data for the mentioned element (the textbox with ID)?
- cmbdnne8 years agoOccasional Contributor
Hi again,
I'm not sure if this was what you're asking for but as the test steps illustrate, I establish a new project with the name testcontrol0402. As this name cannot be the same when I re-run the test, I've replaced the project name with a code expression which names the new project after the date and time of its creation.
This date and time expression value is what I would like to capture in a variable to use further on in the test.
When I re-run my test, the new project will have a different date/time value which then should captured and use further on in the test.
I hope this makes sense & thank you for your help.