Highlighted
Absent Member.
Absent Member.
584 views

sample test has been completed RESTful webservice , but i have one doubt where to add transactions

sample test has been  completed RESTful webservice using LR, but i have one doubt where to add transactions  ,can plese guide me.

my scenerio is appointment creation:

EX: Action()
{
    web_rest("Add yms-appointment creation", 
             
    "URL=http://192.168.68.242:8181/ywc-1.0/services/yms/appointment",
    "Method=POST",         
    "ResType=XML",         
    "BodyFilePath=YMS rest.xml",
    LAST);    
    return 0;
     }

my body file path=xml file(here where to add transactions)

 

Thanks,

Sivanjan BV

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

Can any one please guide me.

0 Likes
Highlighted
Absent Member.
Absent Member.

sample test has been completed in Restful API webservice using loadrunner,

EX:

EX: Action()
{
    web_rest("Add yms-appointment creation", 
             
    "URL=http://192.168.68.242:8181/ywc-1.0/services/yms/appointment",
    "Method=POST",         
    "ResType=XML",         
    "BodyFilePath=YMS rest.xml",// before body file path i can add trasaction or any other process is there?
    LAST);    
    return 0;
     }

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

hi,

 

i don't really understand the question.

did you surrounded the step with lr_start_transaction and lr_stop_transactoin?

lr_start_transaction("aaa");


web_rest("POST: http://someService",
"URL=http://SomeService",
"Method=POST",
"EncType=raw",
"Snapshot=t722014.inf",
"Body=111",
LAST);

lr_end_transaction("aaa", LR_AUTO);

 

Micro Focus Performance Core.
Functional Architect
your performance, our passion!
0 Likes
Highlighted
Absent Member.
Absent Member.

Thank you,

Thanks,

Sivannjan BV

kewill inida private limited

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.