cancel
Showing results for 
Search instead for 
Did you mean: 

how to increment date for each test run

SOLVED
Highlighted
Community Hero

Re: how to increment date for each test run

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.
Highlighted
Community Hero

Re: how to increment date for each test run

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
Highlighted
Community Hero

Re: how to increment date for each test run

Good catch!


Regards,
Rao.
Highlighted
Community Hero

Re: how to increment date for each test run

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.
Highlighted
Occasional Contributor

Re: how to increment date for each test run

oops!

Actually it worked after removing the name.

 

Thanks Richie!

 

 

Highlighted
Occasional Contributor

Re: how to increment date for each test run

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

Highlighted
Community Hero

Re: how to increment date for each test run

@Nancy2,
Appreciate if you can mark the right solution(actual reply) which has the answer.


Regards,
Rao.
Highlighted
Community Hero

Re: how to increment date for each test run

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
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
Highlighted
Occasional Contributor

Re: how to increment date for each test run

Hi Rao,

 

I think I marked the actual reply as solution which you posted on 02-13-2019 05:03PM. This post only gave me the actual solution. Kindly refer attached screenshot and suggest.

 

Regards

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors