Highlighted
Absent Member.
Absent Member.
150 views

duplicate calls generated in script (LR9.52/HTTP/HTML/Flex)

Help required please...

LR 9.52 with HTTP/HTML and Flex protocols used

Generated script has duplicated calls whether they web_url or Flex_amf_call requests.
Please see the below code (changed the url/script due to security reasons and not provided here my project url):

Action()
{

web_add_cookie("PREF=ID=bd94c71bf6e376fb:U=bf9104aab8fda996:FF=0:TM=1301321892:LM=1301327026:S=fsqxW764huZZ0Old; DOMAIN=www.google.co.in");

web_add_cookie("NID=45=KBDhOYi3B5SbUnI9jzjQUnC6fToj7Rts1LVSpsnKRC1c_-uF7yhTOdwPfZIXCSlNTBJG1o6ddi9iXe2y5QBq2-3eJRqP0yUi16SKbSVLcjYZX-OA33QzLv4jVHWuUdPz; DOMAIN=www.google.co.in");

web_reg_find("Text=Google",
LAST);

web_url("www.google.co.in",
"URL=http://www.google.co.in/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);

web_reg_find("Text=Google",
LAST);

web_url("www.google.co.in_2",
"URL=http://www.google.co.in/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);

web_add_cookie("PREF=ID=bd94c71bf6e376fb:U=bf9104aab8fda996:FF=0:TM=1301321892:LM=1301327026:S=fsqxW764huZZ0Old; DOMAIN=clients1.google.co.in");

web_add_cookie("NID=45=KBDhOYi3B5SbUnI9jzjQUnC6fToj7Rts1LVSpsnKRC1c_-uF7yhTOdwPfZIXCSlNTBJG1o6ddi9iXe2y5QBq2-3eJRqP0yUi16SKbSVLcjYZX-OA33QzLv4jVHWuUdPz; DOMAIN=clients1.google.co.in");

web_url("generate_204",
"URL=http://clients1.google.co.in/generate_204",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.co.in/",
"Mode=HTML",
LAST);

web_reg_find("Text=Yahoo! India",
LAST);

web_url("yahoo.com",
"URL=http://yahoo.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);

web_reg_find("Text=Yahoo! India",
LAST);

web_url("yahoo.com_2",
"URL=http://yahoo.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);

web_reg_find("Text=Yahoo! Search - News Search",
LAST);


thanks,
venkat
0 Likes
4 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: duplicate calls generated in script (LR9.52/HTTP/HTML/Flex)

You might have set the capture level in porting mapping settings to wininet + Sockets.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: duplicate calls generated in script (LR9.52/HTTP/HTML/Flex)

thanks Madan, it works but if I want to capture the URL to parameterize how to do it b'cos in everycall url is generated in the script...pls. see the script below...
web_url("xxx.html",
"URL=https://xxx.com/xxx.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);

lr_think_time(165);

web_url("historyFrame.html",
"URL=https://xxx.com/xxx.html?",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=https://xxx.com/xxx.html",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);

web_add_auto_header("x-flash-version", "10,2,153,1");

flex_amf_call("AMF3_call",
"Gateway=https://xxx.com/xxx/"
"messagebroker/unauthorizedAmf",
"Snapshot=t3.inf",
MESSAGE,
"Method=null",
"TargetObjectId=/1",
BEGIN_ARGUMENTS,
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: duplicate calls generated in script (LR9.52/HTTP/HTML/Flex)

If i understand correctly, parameterization is something you do manually which is not related to the problem you are facing.

Please elaborate your query.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: duplicate calls generated in script (LR9.52/HTTP/HTML/Flex)

thanks i got the solution from you..again this is other query...start it in another thread..
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.