ATF: Set Variable Values (SP) fails when test is run

s_renjarnbo
Tera Expert

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:

s_renjarnbo_0-1721129491006.png

(format: DD.MM.YYYY)

 

When I run the test I get below error and the field is empty

 

s_renjarnbo_1-1721129676762.png

s_renjarnbo_2-1721129944168.png

...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

 

1 REPLY 1

s_renjarnbo
Tera Expert

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 !