Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all 12134 articles
Browse latest View live

Re: Using web_reg_save_param_xpath with DFES

$
0
0

Hi, 

 

Yes, you can use it. Once you have regenerated the script using the respective dfe and the data was converted succesfully to xml you can use this function. 

For example when you use  json to xml dfe in snapshot layout pane in  the request body and response body you will be able to view additional tab XML Value from which you will be able to correlate the desired values.

 

 correlateJsonToXMLDFE.png

 

 

 

It will genrate web_reg_save_param_xpath correlation step. 

 

web_reg_save_param_xpath(
        "ParamName=CorrelationParameter",
        "QueryString=/HP_EXTENSION[1]/object[1]/object[1]/pair[2]/text()[1]",
        "ReturnXml=No",
        "DFEs=JsonXml",
        SEARCH_FILTERS,
        "Scope=Body",
        LAST);

 

Kind regards, 

 


Re: Using web_reg_save_param_xpath with DFES

$
0
0

 

 

//2

...

...

web_custom_request

...

...

web_concurrent_end

 

I have tried placing web_reg_save_param_xpath in place of //1 and in place of //2 above but same error; Also, tried RequestURL in SEARCH_FILTERS but same error. And, if web_concurrent_* are commented then it works fine.

 

Calling Multiple Actions in VuGen

$
0
0

Hi,

 

I am planning to create the script like below. Let's say I have 5 actions. Action1 will run always and depends on the parameter I pass from data sheet, I have to run either Action2 or Action3 and so on. How to call Action2 or Action3 from Action1.

 

Ex: In datasheet I have like Login, Search, Submit, Edit,etc.

 

Action1

{

Always execute this.

 

If X= Search

 Action3();

else if X=Submit

 Action2();

}

 

How to call actions depends on value.. Can anybody help how to write script. Please let me know if you need any other information.

 

Thanks,

TRao

Re: Calling Multiple Actions in VuGen

$
0
0

HI TRao

The example that you added is correct, you only need to use the name of the action to call it.

You need to modify the Runtime Setting - Run Logic and remove the extra actions from Run section, so only Action() will be executed every Iteration.

 

Rodolfo Leitón

Re: Calling Multiple Actions in VuGen

$
0
0

Thanks for the quick reply Rodolfo.

 

I mean this script not only for one user. If I upload to PC, I will add 100 more users.

My business scenario is, some user's will perform only Action2() and some other user's will do Action3() based on X value from datasheet.

 

Thanks,

TRao.

Re: Calling Multiple Actions in VuGen

$
0
0

TRao, an example of this:

I think you have a file with User information that is proceed in Action(). In my example it will be "x" value:

Action()
{
    int x;
    srand(time(NULL)); 
    x = rand()%10//return 0-10
    lr_output_message("Action: %d", x);
    switch(x)
    {
        case 1Action1();
        case 2Action2();
        defaultAction3();
    }
    return 0;
}

In Action 1 to 3 you have code for each specific user.

You need to add the code to read the file with user information.

Remember to change the Run Logic

 

Rodolfo Leitón

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

For LoadRunner here.
For Performance Center here.

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

If you found this information useful please leave a kudo.

 

Re: Running QTP scripts in Load runner controller

$
0
0

Hi Rahman,

 

You can run QTP / UFT script in LoadRuner or Performance center ( PC ) but it's just starting scripts for number of users, get transaction stats in your scenario during run and nothing else.

 

You need to handle pacing, number of iterations,  error handling, data for running multiple users concurrently etc by yourself in your script, LoadRunner or PC won't do anything as it helps in other protocol scripts. Its just a run engine container which provides start /stop and get transactions matrix for QTP/UFT.

 

I hope it helps you to understand what kind of design you need to plan, if you want to use QTP/ UFT using LoadRunner or PC. In nutshell I would say avoid if you can and prefer using other protocols such as TruClient which is similar like QTP/UFT and use your custom framework as helper function libraries.

 

Thanks!

Re: Calling Multiple Actions in VuGen

$
0
0

Hi Rodolfo,

 

Thanks again for the quick response. I have to change my datasheet little bit, I will change and update here whether your solution works or not. Once again thanks very much.

 

Thanks,

TRao.


Re: Load Generator CPU exceeds 80 percent

$
0
0

Hi Experts,

 

i have installed LR LG on different machine but still same results, it is showing Load Generator CPU exceeds 80 percent error message. i have run only 50 vusers but still it is causing problem and some vuser also fails. i have tried to use Web/Http and true client protocol but same results. please help to solve the issue. 

Re: Load Generator CPU exceeds 80 percent

$
0
0

Do you have any Anti-virus running on that machine? Can you please disable and try ?

Re: Load Generator CPU exceeds 80 percent

$
0
0

yes we have tried by disabling it but same results.

AJAX - Click and Script (GUI) - Parametrization

$
0
0

Hi,

 

I am recording a webpage with AJAX - Click and Script (GUI) protocol. I can see the login username and password in the request body but it is no where in the script. So, how to parametrize the login username and password.

 

I am using Loadrunner v12

 

Thanks in advance

 

Dhiraj

Re: Using web_reg_save_param_xpath with DFES

$
0
0

Hi, 

 

When you make correlations, I would advice you the correlation step and the next step on which the server will send the dynamical value, which needs to be correlated, to be outside web_concurrent_start(NULL);   web_concurrent_end(NULL); block.

web_reg_save_param_xpath registers a request to find an XML node within the server response to the next action function. However when you have a concurrent group all the functions within the concurrent group are executed together.

 

Kind regards, 

Vesela

Re: AJAX - Click and Script (GUI) - Parametrization

$
0
0

Hi Dhiraj, 

 

If it is not visible in the script, you will not be able to parametrize it. Please try to regenerate or rerecord the script using HTML -based script option in Recording options -> General -> Recording. -> HTTP/HTML Level. 

If you application alows and you would like to use a GUI base protocol, I will recommend you to use Ajax TruClient protocol. 

 

Kind regards, 

Re: Error: The user files were not transferred to the local load generator

$
0
0

I'm using LR 12.0

 

when running the scenario from the controller by using another machine as a load generator, we're getting the following message.

 

Error: Cannot find usr file C:\Users\TMPMK5\AppData\Local\Temp\brr_YAR.533\netdir\C\LRScripts\Enfo1\Enfo1.usr.                [MsgId: MERR-10793]


Re: LoadRunner not recording ctrx_obj_mouse_click() after installing citrix agent on XenApp server

$
0
0

Hi Rodolfo,

 

As you suggested, we have disabled UAC, DEP and there is no Antivirus installed on Citrix XenApp server either. We re-installed the citrixagent on the server and it says successfully installed (appears in program files too) (Also, I have installed registry "Enable_Citrix_API.reg" in my VuGen local machine).

 

But, I don't see any process or service running with the name "ctrxagent.exe"  in task manager and when I record using VuGen, I still don't see "ctrx_obj_mouse_click()". It looks like something blocking on the server (but I don't have any idea, do you?)

 

Please advice what could went wrong.

 

Thanks,

Raj

Re: LoadRunner not recording ctrx_obj_mouse_click() after installing citrix agent on XenApp server

$
0
0

Hi,

 

I’ve attached a debug log from the CtrxAgent.exe process which doesn’t seem to want to launch on the Citrix XenApp server.

 

Please advice..

 

Thanks,

Raj

LR support tip: No script is generated in VuGen 11.52 Web (HTTP/HTML) protocol with enabled GWT DFE

$
0
0

When trying to generate a Web (HTTP/HTML) script using GWT DFE on a Windows XP or a Windows 2003 machine, no script gets generated due to Windows virtual memory management limitations.

 

Please find instructions how to overcome this problem in the following knowledge documents:

http://support.openview.hp.com/selfsolve/document/KM00966371

LR support tip: A regular expression in TruClient step causes script replay to fail in LR 12

$
0
0

When a regular expression is used in a "Verify" step in a TruClient for Internet Explorer or TruClient for Firefox script, the replay of the step fails.

 

This is specific to LoadRunner 12.00 and is not reproduced in previous versions of LoadRunner.

 

A hotfix which resolves this issue is provided in the following knowledge document: 

http://support.openview.hp.com/selfsolve/document/KM00966360

Script Generation takes an exceptional amount of time (LR 11.52)

$
0
0

I appear to be having a very similar issue to someone else, however, I'm not particularly sure how to solve it myself.

 

https://groups.google.com/forum/#!topic/lr-loadrunner/Wl4wJnZMQLI

 

"I have noticed that the LR 11.5 script code generation using (web http/html protocol) was taking too long to complete(around 20 minutes), especially it is taking a lot of time in 'performing scan for correlation post generation operation.'"

 

The reply:

 

"You may change the correlation configuration by allowing rule correlation only, the other 2 correlation engine will take more time than rule."

 

How exactly do you change the correlation configuration? I found an option to do so in the recording options (Ctrl+F7), but I'm not sure how to enable 'rule correlation only.' Can someone explain this to me?

Viewing all 12134 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>