how to increment date for each test run
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019
12:20 AM
02-13-2019
12:20 AM
how to increment date for each test run
Hi,
In my test step I need to pass new date in each test run. How can I do that?
Regards,
Preeti
Solved! Go to Solution.
28 REPLIES 28
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
04:04 AM
02-27-2019
04:04 AM
Can you show the screen shot of groovy script by running it multiple times?
What does the raw tab show?
Does you application accept the same format?
Regards,
Rao.
What does the raw tab show?
Does you application accept the same format?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
04:20 AM
02-27-2019
04:20 AM
Hey @Nancy2
I can't help with the groovy - but I think @New2API mentioned that your error.png includes the testcase name in your property. Have you tried removing the testcase name?
e.g.
${#CreateActivity TestCase#New_Date}
remove the 'CreateActivity', so it reads as follows:
${#TestCase#New_Date}
Cheers,
richie
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
04:26 AM
02-27-2019
04:26 AM
Good catch!
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
04:28 AM
02-27-2019
04:28 AM
Looks, people don't pay attention. For a moment, I thought if I did not mention. But it was clearly mentioned how to use.
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
08:24 PM
02-27-2019
08:24 PM
oops!
Actually it worked after removing the name.
Thanks Richie!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019
08:26 PM
02-27-2019
08:26 PM
Can I ask something in the same thread??
In the Groovy script, date starts from today. In case I want to give specific date and would like to start from that date??
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019
03:55 AM
02-28-2019
03:55 AM
@Nancy2,
Appreciate if you can mark the right solution(actual reply) which has the answer.
Regards,
Rao.
Appreciate if you can mark the right solution(actual reply) which has the answer.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019
12:55 PM
02-28-2019
12:55 PM
Hey @Nancy2,
You can ask another question on the same thread, but its advisable to create a new one, there are several reasons for this but a major one is that you cant mark >1response as the solution (the correct answer), which leads onto the next point.
As @rao asked, the groovyscript provides the answer to your original problem so it's important to mark that as the answer to your original question, rather than the post relevant to the testcase name as it would be confusing for peopme searching for the answer to your original problem
Cheers
Richie
You can ask another question on the same thread, but its advisable to create a new one, there are several reasons for this but a major one is that you cant mark >1response as the solution (the correct answer), which leads onto the next point.
As @rao asked, the groovyscript provides the answer to your original problem so it's important to mark that as the answer to your original question, rather than the post relevant to the testcase name as it would be confusing for peopme searching for the answer to your original problem
Cheers
Richie
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2019
07:59 PM

- « Previous
- Next »
- « Previous
- Next »