Solved
Forum Discussion
richie
5 years agoCommunity Hero
Hey Hellotest,
There are numerous ways to actually add a header into request.
To help diagnose the issue, could you please provide step by step details on exactly what you did to add the header to the resource please?
Cheers,
Rich
There are numerous ways to actually add a header into request.
To help diagnose the issue, could you please provide step by step details on exactly what you did to add the header to the resource please?
Cheers,
Rich
- Hellotest5 years agoContributor
Updated the API under API's by adding below header as highlighted .
Clicked on save, ran the test case.
Observing that newly added header value is not populated in test case.
Also checked by refreshing the project and running the test again but same issue.
What is missing here?
- richie5 years agoCommunity HeroHey Hellotest,
As far as i can remember, even if you use the update/refactor api functionality REST parameter values are NOT persisted (i think it might actually say this somewhere in the help)
It's a little annoying but the way i've handled this before (once the resource or request has been updated with new parms) is to delete the old test step and recreate the test step with the updated parm and value.
I think this is the only way around this.
Cheers,
Rich- Hellotest5 years agoContributor
Thanks Richie.
I believe then it is a defect .
There could be multiple test steps involved, also they may have different string body and assertions tied to that test step.Each time if we have to delete and add them back , it is laborious process.
It might not be just headers , could be other examples like adding string body in API itself and then updating it.
Related Content
- 3 years agoCKTester