cancel
Showing results for 
Search instead for 
Did you mean: 

Run TestCase Test Step - Property values are not getting set

SOLVED
rajs2020
Frequent Contributor

Run TestCase Test Step - Property values are not getting set

I have a run test case step in Test1. This step calls a test Test2 which has two input properties. I provide values for the two inputs in Test1. But, the values are not passed to Test2, i.e. the values are empty or blank in Test2. Why could this be happening? Is there an easy way to figure this out?

PS - Logically, this seems like a simple function call, e.g. addNumbersStep(2,5) => addNumbersTestCase(num1, num2). But, it does not seem simple to accomplish in ReadyAPI. So, I don't know what I am missing here. As an aside, I am using Peforce for source control which has its own quirks (e.g. write protecting ReadyAPI files). So, for some problems its hard to figure out if its a ReadyAPI problem or Perforce problem.

1 ACCEPTED SOLUTION

Accepted Solutions
richie
Community Hero

Re: Run TestCase Test Step - Property values are not getting set

Hey @rajs2020,

I used to notice a problem (on REST and SOAP APIs and test steps) where id update a value and click 'Save' without moving the focus out of the field id updated.
If i closed ReadyAPI! at that point the altered values wouldnt persist. I got into the habit of:

1. Alter value
2. Click into a different completely field within the UI (different API or test step)
3. Click 'Save'

This appeared to solve my problem. It was a while ago and perhaps i noticed it occurring when i had version3.

Ta

Rich
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

View solution in original post

4 REPLIES 4
HimanshuTayal
Community Hero

Re: Run TestCase Test Step - Property values are not getting set

@rajs2020 : It would be helpful if you can attach a screenshot of flow which you have created and at which point values are not getting passed.


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal
richie
Community Hero

Re: Run TestCase Test Step - Property values are not getting set

Hey @rajs2020,

Also, can you confirm which version youre using? I'm running the latest so I'll try and replicate.

Ta

Rich
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
rajs2020
Frequent Contributor

Re: Run TestCase Test Step - Property values are not getting set

I am using 3.0 and I cannot upgrade it. The problem magically got resolved.

 

I remembered saving everything in my project and still the values were not getting passed. Today, when I opened ReadyAPI again, the values passed via Test1 were blank. I entered them again, saved them and the test passed. I closed ReadyAPI and those values are still there as desired. So, I don't know what really happened. Many of my ReadyAPI problems, but not all problems, go away by simply reloading the project or by restarting ReadyAPI. But, its annoying to have such problems and reload/restart to fix them. 

richie
Community Hero

Re: Run TestCase Test Step - Property values are not getting set

Hey @rajs2020,

I used to notice a problem (on REST and SOAP APIs and test steps) where id update a value and click 'Save' without moving the focus out of the field id updated.
If i closed ReadyAPI! at that point the altered values wouldnt persist. I got into the habit of:

1. Alter value
2. Click into a different completely field within the UI (different API or test step)
3. Click 'Save'

This appeared to solve my problem. It was a while ago and perhaps i noticed it occurring when i had version3.

Ta

Rich
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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors