ATF: Set Variable Values (SP) fails when test is run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 04:41 AM
Hi
I am fairly new to Automated Test Framework (ATF). I have successfully created 2 tests and am currently on the 3rd 🙂
I am creating a record producer from our portal, so using "Open Record Producer (SP)". To fill in the form I am using the "Set Variable Values (SP)" test step. When filling in the form there is a mandatory field "Valid From" which is a date field with a date picker (date only). I have configured the field like below in the test step:
(format: DD.MM.YYYY)
When I run the test I get below error and the field is empty
...and hence the record producer cannot be submittted.
I have read about the javascript: gs.somedatefunction and that can work for me as long as there is a way to set the date to the first of any month in the future.
I am not a javascript developer so dont know much about javascript :-)
If more information is required please dont hesitate to ask.
kind regards
Søren Jarnbo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 05:03 AM
I have managed to solve the issue myself apparently.
I have entered the date as "01/01/2025" instead of using the date picker in the test step configuration.
CONCLUSION
Date format is pretty important and date picker cannot be relied on !