Ask a Question

Updating TestStep - will update TestCases using the TestStep

apmorales
Regular Visitor

Updating TestStep - will update TestCases using the TestStep

Hi,I have a TestSuite with different Test Cases that uses same TestStep. 

We are using DataSource for scenario with the same flow and create different testcase when the flow has different TestStep.

Is there is way that when TestStep is changed , it will automatically update TestStep for all Test Cases that uses it?

or Is there is a better  way to approach this?

 

Below is sample:

apmorales_0-1656042545461.png

 

cheers,

Ady

 

1 REPLY 1
JoostDG
Frequent Contributor

Hi @apmorales ,

You can define 1 time a Test Case with for instance test steps "Airshop" & "OfferPrice" since I see those you need to run each time. In your actual subsequent tests you can use then "Run Test Case Test Step" to call this test case. You can create test case properties to dynamically provide the properties you need (in case those are different). More info: https://support.smartbear.com/readyapi/docs/functional/steps/run-test-case.html

This also is more easy to maintain. Imagine the request payload for "OfferPrice" suddenly has a new mandatory field you will need to adapt all your test steps in all your test cases. With above approach you'll have it in just one place.

 

 

cancel
Showing results for 
Search instead for 
Did you mean: