Create XML test step
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019
07:07 AM
01-30-2019
07:07 AM
Create XML test step
Hi ,
I have a need to create XML file as value with in a parameter.
Ex- In my request , I have InteropApiData and TemplateData as XML file . Also I need to chagne data in that XML based on previous steps (Here OrderNo, EnterpriseCode ...etc).
Please guide.
Thanks
MJ
5 REPLIES 5
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019
01:56 PM
01-30-2019
01:56 PM
Hey!
if im guessing correctly as to what you need there are multiple ways of doing this.
I need a bit of clarification:
Its REST not SOAP?
What method? POST?
Your payload is an xml container and within one of the tags is another complete xml instance (analagous to SOAP)? Is that correct?
The xml that is "contained"...is the whole instance where do you get that from?
The xml that is "contained", how many tags need parameterising?
The more info we havr the better. Example payloads would be very helpful too!
Cheers,
richie
if im guessing correctly as to what you need there are multiple ways of doing this.
I need a bit of clarification:
Its REST not SOAP?
What method? POST?
Your payload is an xml container and within one of the tags is another complete xml instance (analagous to SOAP)? Is that correct?
The xml that is "contained"...is the whole instance where do you get that from?
The xml that is "contained", how many tags need parameterising?
The more info we havr the better. Example payloads would be very helpful too!
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
01-31-2019
03:45 AM
01-31-2019
03:45 AM
What exactly needs to be modified in the xml?
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
08:06 AM
02-04-2019
08:06 AM
I want XML as a test step.
As in my SOAP/Rest request I have a Key and Value pair.
The Value takes a entire XML. Also in the XML is being constructued by taking values from previos SOAP/Rest responses.
Thanks,
MK
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
08:07 AM
02-04-2019
08:07 AM
@nmrao wrote:
What exactly needs to be modified in the xml?
I want XML as a test step.
As in my SOAP/Rest request I have a Key and Value pair.
The Value takes a entire XML. Also in the XML is being constructued by taking values from previos SOAP/Rest responses.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019
05:08 PM
02-04-2019
05:08 PM
You can use test case level custom property and use that for the parameter value as ${#TestCaes#XML}, assuming that XML custom property is defined and xml content is saved as value.
Regards,
Rao.
Regards,
Rao.
