Highlighted
Valued Contributor.
Valued Contributor.
241 views

Which protocol to use?

Hi!

I need to perform load testing of the following system:

There are 2 servers which communicate via HTTPS: the first one sends requests to the second every defined time period (let's say, each 60 seconds). The second one sends response (JSON). These two servers are part of whole system and performs some internal bussiness logic. GUI user can't connect to these servers.

How LR can help me? Which protocol to use? How to simulate the load?

Thank you in advance. 

0 Likes
2 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Re: Which protocol to use?

Hi YakovM

In the past I used HTTP.HTML protocl. I believe you can use the same Protocol even though you dont have any GUI by putting custom request.

For these 2 operations you will have 2 URL requests that can be done in 1 script or 2 scripts. As you mentioned:

Put the 1st url and ask them what is the success response so that you can put that as checkpoint.

If u work in 1 script put the think time as needed and

Put the 2nd url and ask them what is the success response so that you can put that as checkpoint.

Example in Action Part:

web_reg_find("Text=UnitHistory>", LAST);
web_reg_find("Text=<ErrorCode>","Fail=Found", LAST);

web_custom_request("Custom_Request",
"URL={HTTP_Protocol}://{HTTP_URL}",
"Method={HTTP_Method}",
"TargetFrame=",
"Resource=1",
"Body={HTTP_Request_Body}",   // you dont need to give parameter for this, u can put directly in the body if you request has body
LAST);

Parameter file with parameter names:

HTTP_Method,HTTP_Protocol,HTTP_TestEnv,HTTP_URL
POST,http,qa,abcd.com:8080/soa-services/v2/UnitHistoryService

 

When you do this make sure if there are any custom headers you might need to add, you can check with app team they give.

Kindly post here if this resolve your issue.

 

Thanks!

 

 

 

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Which protocol to use?

Thanks a lot for the idea.

I'll try it and inform you.

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.