How to parameterize the URL of WSDL in HP Service Test 11.50 ? (615 Views)
Reply
Occasional Contributor
Kdutta
Posts: 6
Registered: ‎03-10-2013
Message 1 of 11 (615 Views)

How to parameterize the URL of WSDL in HP Service Test 11.50 ?

Does anyone know how to parameterize the URL of WSDL in HP Service Test 11.50 ?

 

I wanted to parameterized the URL of WSDL similar to paraterization of endpoint URL in HP Service Test 11.50. Is there any way I can perform this with out custom coding.

 

I need to test a service on two different environments and hence need to find  a way to paraterize the WSDL URL.

Please use plain text.
Advisor
citizencrane
Posts: 21
Registered: ‎11-03-2010
Message 2 of 11 (597 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

Because the WSDL is the Contract of how the request and response of a service is supposed to work, it is not something you would want to parameterize for testing unless you were automating script creation.

 

if you need to use two different WSDL's import those two different WSDL's in your script and execute separately.

 

If the WSDL in Environment A and Environment B are the Same, you shouldn't need to parameterize as WSDL in the first place, simply change the endpoint you are pointing at.

Corey Bailey
Principal Consultant
Citizencrane Solutions
www.citizencrane.com
Please use plain text.
Occasional Contributor
Kdutta
Posts: 6
Registered: ‎03-10-2013
Message 3 of 11 (592 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

 

 I want to parameterize the the URLs for WSDL since I need to execute the test scripts on two different environments and make sure that correct WSDL files are deployed on each of the environments for testing. Also I'm using QC to schedule and execute the test scripts hence I want to execute the test scripts from QC on different environments.

 

 I know other SOA Testing tool e.g, Parasoft SOATest does allow parametrerizing of WSDL file and execution of scripts from QC on different environments.

 So is there a way I can perform the same using HP Service Test 11.50 ?

 

 

Please use plain text.
Advisor
citizencrane
Posts: 21
Registered: ‎11-03-2010
Message 4 of 11 (585 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

So if you just want to validate that the WSDL is at a certain location you can use the HTTP Activity substituting the WSDL location in the URL.   If the WSDL's are esstentially the same between environment you can point the Web Service Activities to the different environments OR use a soap request.

 

 

Corey Bailey
Principal Consultant
Citizencrane Solutions
www.citizencrane.com
Please use plain text.
Occasional Advisor
MNF_11
Posts: 6
Registered: ‎07-02-2013
Message 5 of 11 (484 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

So there is no way to automate by Importing WSDL? Because I have 100 WSDL URL to be parameterize to automate the testing. In QTP11 version we have option to link the WSDL URL's which takes from the data table. like that we don't have option here?

Please use plain text.
Advisor
citizencrane
Posts: 21
Registered: ‎11-03-2010
Message 6 of 11 (479 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

AFTER you import the WSDL you can use the automation, you can parameterize the endpoints if you need to to test against different servers which all happen to use the exact same endpoing, but you have to import the WSDL first.

 

 

Corey Bailey
Principal Consultant
Citizencrane Solutions
www.citizencrane.com
Please use plain text.
Occasional Advisor
MNF_11
Posts: 6
Registered: ‎07-02-2013
Message 7 of 11 (470 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

So we can't automate the Import WSDL from data sheet?

Please use plain text.
Advisor
citizencrane
Posts: 21
Registered: ‎11-03-2010
Message 8 of 11 (467 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

So are all of these WSDL's contain the exact same operations or can they be different?

Corey Bailey
Principal Consultant
Citizencrane Solutions
www.citizencrane.com
Please use plain text.
Occasional Advisor
MNF_11
Posts: 6
Registered: ‎07-02-2013
Message 9 of 11 (444 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

Same operation.. But each wsdl is bind with different name based on the group created.

 

E.g.: http://IP:Port/NT_SendSMS_AllPolicy_0_1_WS/http/SendSmsBinding?WSDL

 

http://IP:Port/NONT_SendSMS_0_1_WS/http/SendSmsBinding?WSDL

 

According to the group, username and password will differ.

Please use plain text.
Advisor
citizencrane
Posts: 21
Registered: ‎11-03-2010
Message 10 of 11 (430 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

create a datafile with the different logins for the different endpoints. Map the Endpoints and credentials to this sheet and increment as necessary

 

 

Corey Bailey

Citizenrane 

 

http://www.linkedin.com/in/citizencrane

Corey Bailey
Principal Consultant
Citizencrane Solutions
www.citizencrane.com
Please use plain text.
Visitor
punit_45
Posts: 4
Registered: ‎10-10-2013
Message 11 of 11 (301 Views)

Re: How to parameterize the URL of WSDL in HP Service Test 11.50 ?

I need a way to update WSDL URL in HPST 11.52 when executing from ALM. Is this possible?

 

For example, I import wsdl v1_0_0 in HPST tool. Later I want to execute the same service with a different version say v1_1_0. These versions could keep changing back and forth.

 

How can this be implemented in HP ST 11.52?

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation