Highlighted
Absent Member.. Absent Member..
Absent Member..
348 views

Kronos Scripting

Hi,

 

Created a Load Runner Script for Kronos - Workforce and once i do replay getting the following error

Action.c(42): Error -26547: Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port"); [MsgId: MERR-26547]
Action.c(42): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://calkrn8aprd01.harborfreight.com/wfc/bridge/datapreparation/rest/1.0/prepareData" [MsgId: MERR-26630]

Please find attacged tge Action Script.

Please advise on how to get this fixed.

 

0 Likes
8 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Kronos Scripting

Hello Rsreenivasa,

Thank you for contacting Forums support.

 

I was checking the error that you are facing, and I would like to know if you have access to the URL "http://calkrn8aprd01.harborfreight.com/wfc/bridge/datapreparation/rest/1.0/prepareData" from the machine where you are running the script in VuGen.

Also, we would like to know if you are using WinInet recording or Socket level recording.

Have you tried to set the function web_set_user() with the login credentials?

Regards,

 

Regards,


Joel Aguilar Cerna
SW Support Technical Consultant
San Jose, Costa Rica
hpe.com
Hewlett Packard Enterprise

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.

Regards,

Joel Aguilar Cerna
SW Support Technical Consultant
San Jose, Costa Rica
microfocus.com
Micro Focus

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

Hi Joel,

Yes, i do as i was able to login and create the script. I added the following but still getting the same error

 

web_set_user("227021", 
        lr_decrypt("5862ef985a63d948155140"), 
        "calkrn8aprd01.harborfreight.com:80");

 

 

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

If i directly ping,I get Unauthorized error but when i record through LR, it captures this URL but during REPLAY it fails. Please advise.

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Kronos Scripting

Hello rsreenivasa

This kind of error messages could be caused by some missing headers.

Please compare on Vugen the snapshots, and check the headers on Split mode, and select from one side the Recording and in the other side Replay, then compare all the headers, and if you noticed that there are missing some headers on the replay, you probably need to add it on the recording options >> HTTP Properties >> Advanced and you should see a button "Headers"

Regards,

Daniela Gómez Alvarado
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

Daniel,

Please advise what needs to be checked in on the Headers, so that i can enable it.

 

Thanks!

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

Where can i find the Vugen Snapshots and can you let me know on the settings to be done.

Thanks

Rakesh

 

 

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

Please find the replay log

**********************************************************

Starting action Action.
Action.c(3): web_set_user started [MsgId: MMSG-26355]
Action.c(3): web_set_user was successful [MsgId: MMSG-26392]
Action.c(4): web_add_auto_header("Accept-Language") started [MsgId: MMSG-26355]
Action.c(4): web_add_auto_header("Accept-Language") was successful [MsgId: MMSG-26392]
Action.c(7): web_url("logon") started [MsgId: MMSG-26355]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/html5/css/theme.css" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/wpk/html/scripts/cookie.js" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/AC_OETags.min.js" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/strophe.min.js" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/kronos_navigator.min.js" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Found resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/html5/thirdparty/js/jquery/jquery-1.7.2.min.js" in HTML "http://calkrn8aprd01.harborfreight.com/wfc/navigator/logon" [MsgId: MMSG-26659]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/wpk/themes/basic/icons/messagebar/Sprite_set2.png" (specified by argument number 9) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/html5/fonts/Roboto-Regular-webfont.woff" (specified by argument number 11) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/wpk/html/images/branding/logon_logo.png" (specified by argument number 14) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/Navigator.swf?version=8.0.11.575" (specified by argument number 16) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/framework_4.5.0.20967.swf" (specified by argument number 18) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-assets/library.swf?version=8.0.11.575" (specified by argument number 21) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-commons/library.swf?version=8.0.11.575" (specified by argument number 24) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-dtos/library.swf?version=8.0.11.575" (specified by argument number 27) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-modules/library.swf?version=8.0.11.575" (specified by argument number 30) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-orgselector/library.swf?version=8.0.11.575" (specified by argument number 33) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-x-alerts/library.swf?version=8.0.11.575" (specified by argument number 36) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/libraries/kronos-x-businesscomponent/library.swf?version=8.0.11.575" (specified by argument number 39) [MsgId: MMSG-26577]
Action.c(7): Downloading resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/assets/eou.swf?version=8.0.11.575" (specified by argument number 42) [MsgId: MMSG-26577]
Action.c(7): web_url("logon") was successful, 4216684 body bytes, 8432 header bytes [MsgId: MMSG-26386]
Action.c(32): web_custom_request("portal") started [MsgId: MMSG-26355]
Action.c(32): Redirecting "http://calkrn8aprd01.harborfreight.com/wfc/portal" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(32): To location "http://calkrn8aprd01.harborfreight.com/wfc/navigator/launch" [MsgId: MMSG-26693]
Action.c(32): Redirecting "http://calkrn8aprd01.harborfreight.com/wfc/navigator/launch" (redirection depth is 1) [MsgId: MMSG-26694]
Action.c(32): To location "http://calkrn8aprd01.harborfreight.com/wfc/applications/navigator/Navigator.do" [MsgId: MMSG-26693]
Action.c(32): Resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/html5/css/theme.css" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(32): Resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/AC_OETags.min.js" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(32): Resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/strophe.min.js" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(32): Resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/kronos_navigator.min.js" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(32): Resource "http://calkrn8aprd01.harborfreight.com/wfcstatic/applications/navigator/html5/thirdparty/js/jquery/jquery-1.7.2.min.js" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(32): web_custom_request("portal") was successful, 5851 body bytes, 2125 header bytes [MsgId: MMSG-26386]
Action.c(44): web_url("prepareData") started [MsgId: MMSG-26355]
Action.c(44): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://calkrn8aprd01.harborfreight.com/wfc/bridge/datapreparation/rest/1.0/prepareData" [MsgId: MERR-26630]
Action.c(44): web_url("prepareData") highest severity level was "ERROR", 64983 body bytes, 308 header bytes [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

**********************************************************

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Kronos Scripting

Hey Srinivas,

Under snap shot veiwer, you can split the window for recording reply. From there we can find the details then compare all the headers, and if you noticed that there are missing some headers on the replay, you probably need to add it on the request directly. This will resolve the issue for sure.

~Shyam

 

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.