Highlighted
Micro Focus Contributor
Micro Focus Contributor
274 views

Help on Testing WebServices with multiple SubItem structure

Hi,

i am trying to find a way to test a web service that have a flexible structure.

The Web Service in the Request Xml has a structure like this:

 

<Item>

           <SubItem1></SubItem1>

           <SubItem2></SubItem2>

            ................................

           <SubItemN></SubItemN>

</Item>

 

The Subitem contains value that change like name, lastname , etc. 

The number of subitem varies from 20 to 100 for each item.

Let's suppose i have all the data, how would it be better to manage the scripting?

Is there a flexible structure to manage the item-subitem relationship and so i can use just 1 script in Vugen?

Thx for any Help

Tommaso

 

 

0 Likes
3 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Help on Testing WebServices with multiple SubItem structure

You can use only one script and parameterize the subitems so that you can manage the test data.


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Help on Testing WebServices with multiple SubItem structure


Hi,

Would you mind to explain in details?

As i said the number of subitem is variable, i can have for 1 item 2 subitem and for another item 100 subitem.

How can i parametrize a variable number of subitem?

Here an example of two request (i added just the OrderN as a property of Item):

 

Request1

 

<Item>

           <OrderN>000001</OrderN>

           <SubItem1>

                           <address>Via Achille Campanile 85</address>

          </SubItem1>

          <SubItem2>

                           <address>Via G Di Vittorio 9</address>

          </SubItem2>

</Item>

 

 

Request2

 

<Item>

           <OrderN>000002</OrderN>

           <SubItem1>

                           <address>Via Giamaica 7</address>

          </SubItem1>

          <SubItem2>

                           <address>Via Stil novo 56</address>

          </SubItem2>

          <SubItem3>

                           <address>Via della crusca 12</address>

          </SubItem3>

</Item>

 

 

0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Help on Testing WebServices with multiple SubItem structure

Since your request is dynamic, parse the tags and replace it with parameter name programmatically. Thanks!


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.