DATA PARAMETERS
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DATA PARAMETERS
Hello,
I have a script that creates new appointment. Within the data field I can type in the date manually but wondered if there was a way to setup a parameter that takes the current date and allows me to format it how I want it.
Is this built into TestComplete?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This should work for you. You can put it inline with your test, but if you are using this formatted date in several places, then I suggested creating a variable to store the formatted date and using that variable instead.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqdatetime/index.html
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to do this in Keyword scripting?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are using keyword tests instead of scripting, then it will look something like this
Choose Set Variable Value and then use Code Expression to set the date format
