distributedlife

passionate about everything

Changing the Service Location in HP Service Test a workaround for stoopid behaviour Published by Ryan Boucher @ 11:55 pm

One of the things that irks me about HP Service Test is when you use it “their way”, it is difficult to change a reference to the service endpoint.

From the Manage Services dialogue you can see each service you’ve included. For non-integration tests this will be one. If you’ve written a service test the way HP prefer (i.e. via the Add Service Call Button) you can’t delete the service.

For example if I try to delete this service:

I get the following error message:

Are they serious? Delete all calls to the service and try again? Who the hell are they kidding? If you spent three weeks writing and executing service tests and have to change service endpoints because the server died you have to delete each and every service call.

That is stupid. There is also a smarter way to do it.

You can do a “find and replace” and change the service name to something like ServiceName1. Delete the end point, add the new location in and then rename ServiceName1 back to the original name.

If you follow my advice on Improving HP Service Tests then you’re life has been made easier. The “delete service” check doesn’t nothing more than a regex on that service name in an web_service_call. As you’ve parameterised each service name to “{Service}” it finds nothing and you are free to change endpoints whenever you like.

Just like you should be able to.

My Mug Ryan Boucher is a Software Inquisitor and is passionate about it. You can find a whole raft of articles and anecdotes about software testing and other topics he gets excited about.
Tags , , , , , , ,