Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..
385 views

Vugen issue

Hi

we are facing a issue while recording a script. we are using Vugen 11.00 on windows 2008R2 server with IE 8. We can record the script but once script recording is done there is nothing written Action.C or vuser_end or vuser_init. We can see some thing like below in Action.c files. Can someone help me on this and let me know why it is not writing any scripts.

 

Action()
{

lr_start_transaction("Login");

lr_start_transaction("Cart");

lr_end_transaction("Cart",LR_AUTO);

lr_start_transaction("Catalog");

lr_end_transaction("Catalog",LR_AUTO);

lr_start_transaction("Logout");

lr_end_transaction("Logout",LR_AUTO);

return 0;
}

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

What protocol are you recording with? Suggest you run protocol analyzer first to see right protocol to be used.

If you have selected wrong protocol then no functions will be recorded.

For example, if you are recording with http protocol but your application does not communicate over http then nothing will be recorded.

0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Hi Mohit,

 

I ran protocal advisor and found 3 results as below

Ajax TruClient

Ajax (Click and Script)

Web (HTTL/HTML)

And i tried to run it in Ajax (Click and Script) and Web (HTTL/HTML) but still its not recording anything. But where as in Ajax (Click and Script) i can see some texts and URLs as below but i dont think its complete and i am getting error while running this script. Is there any other things I can try

Action()
{
web_set_sockets_option("SSL_VERSION","TLS");
web_add_cookie_ex("Cookie=s_vi=[CS]v1|2B57B38C0501311E-60001609000EB4A3[CE]; domain=herbalife.com; path=/", ENDITEM,
"Cookie=Herbalife-SPA={\"Configuration\":[{\"Key\":1,\"Value\":[{\"Key\":\"en-US\",\"Value\":{\"Access\":true,\"ExpirationDate\":\"\\/Date(1454484203869)\\/\"}}]},{\"Key\":2,\"Value\":[{\"Key\":\"en-US\",\"Value\":{\"Access\":true,\"ExpirationDate\":\"\\/Date(1454484204447)\\/\"}}]},{\"Key\":3,\"Value\":[{\"Key\":\"en-US\",\"Value\":{\"Access\":true,\"ExpirationDate\":\"\\/Date(1454484280868)\\/\"}}]}],\"Token\":\"a51ea34b-168b-4438-bfd1-a53362bb1111\"}; domain=mydomain.com; path=/", ENDITEM,
"Cookie=s_pers=%20s_vnum%3D1456927767614%2526vn%253D4%7C1456927767614%3B%20s_lastvisit%3D1454478813231%7C1549086813231%3B%20s_fid%3D7C70E76D067A1EB0-3EC1E0E2804DCB3A%7C1517637407114%3B%20s_pv%3Dmyhl%253Aus%253Aen%253Adistributor%2520login%7C1454480807114%3B%20s_nr%3D1454479007114-Repeat%7C1457071007114%3B%20s_invisit%3Dtrue%7C1454480807130%3B%20s_visit%3D1%7C1454480807145%3B; domain=mydomain.com; path=/", ENDITEM,
"Cookie=RENDERING_LOCALE=en_US; domain=mydomain.com; path=/", ENDITEM,
"Cookie=mbox=session#1454477005940-776072#1454480867; domain=mydomain.com; path=/", ENDITEM,
"Cookie=HerbalifeUser=Locale=en-US; domain=mydomain.com; path=/", ENDITEM,
"Cookie=MemberSubscribedCookie=false; domain=www.mydomain.com; path=/Home/", ENDITEM,
"Cookie=MemberPopupCookie=3; domain=www.mydomain.com; path=/Home/", ENDITEM,
"Cookie=HLF_AKAM_ORIGIN=NAMP2; domain=www.mydomain.com; path=/", ENDITEM,
LAST);

web_browser("www.mydomain.com",
DESCRIPTION,
ACTION,
"Navigate=http://www.mydomain.com/",
LAST);

lr_start_transaction("HomePage");

lr_think_time(18);

web_text_link("Login",
"Snapshot=t1.inf",
DESCRIPTION,
"Text=Login",
ACTION,
"UserAction=Click",
LAST);

lr_end_transaction("HomePage",LR_AUTO);

lr_start_transaction("Login");

lr_think_time(18);

web_edit_field("Username",
"Snapshot=t2.inf",
DESCRIPTION,
"Type=text",
"Name=Username",
ACTION,
"SetValue=123456",
LAST);

lr_think_time(8);

web_edit_field("Password",
"Snapshot=t3.inf",
DESCRIPTION,
"Type=password",
"Name=Password",
ACTION,
"SetEncryptedValue=56b19709b09d354f6a244e82",
LAST);

web_button("INPUT",
"Snapshot=t4.inf",
DESCRIPTION,
"Type=submit",
"Tag=INPUT",
"ID=submit",
"Name=Sign in",
ACTION,
"UserAction=Click",
LAST);

lr_end_transaction("Login",LR_AUTO);

lr_start_transaction("Catalog");

lr_think_time(21);

web_text_link("Product Catalog",
"Snapshot=t5.inf",
DESCRIPTION,
"Text=Product Catalog",
"Ordinal=2",
ACTION,
"UserAction=Click",
LAST);

lr_end_transaction("Catalog",LR_AUTO);

lr_start_transaction("Pricelist");

lr_think_time(27);

web_text_link("Online Price List",
"Snapshot=t6.inf",
DESCRIPTION,
"Text=Online Price List",
"Ordinal=2",
ACTION,
"UserAction=Click",
LAST);

lr_end_transaction("Pricelist",LR_AUTO);

lr_start_transaction("Logout");

lr_think_time(21);

web_text_link("Log out",
"Snapshot=t7.inf",
DESCRIPTION,
"Text=Log out",
"Ordinal=2",
ACTION,
"UserAction=Click",
LAST);

lr_end_transaction("Logout",LR_AUTO);

web_browser("Sync",
"Snapshot=t8.inf",
DESCRIPTION,
ACTION,
"Sync",
LAST);

return 0;
}

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

did you try changing the capture leve(winInet/socket)?

Check whether the application you work have browser compatibitlity with Loadrunner!

Try changing the 32/64 bit versions of browser.

did you try recording with other browsers?

What errors you get from Click and script??

0 Likes
Highlighted
Absent Member.
Absent Member.

Follow steps as suggested by Satzz. If nothing works you can try record the flow in Fiddler and then convert the .saz recording into Vugen script.

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.