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

App Session remains active even after replay ends in TruClient Ajax - IE

$
0
0

I recorded an LR script using TruClient Ajax - IE that just navigates to a application URL. Basically when the URL is opened a session a created for the application in the backend server.

The businesss case is to simulate users carrying out a number of iterations of this test. So basically for each iteration a session would be created and then disconnected for the application.

When I try to replay this script, I notice that if I ran it with mutiple iterations, for each iteration LR creates a new session for the application but does not close the previous session that was opened by the previous iteration.  It is only when the LR script replay completes, that all the sessions gets disconnected that were opened by the iterations in one go. If I were to replicate the same manually via the browser, then on closing the browser immediately the session gets terminated on the backend.

All that I have in the LR script is a step to "Navigate to........ the app URL" . The End event for this step is set to "Automatic: Document Loaded". I added the Generic Browser Action step from Toolbox "Close Active Browser Window" with the End Event as "Automatic: Not Set Yet", but it didnt seem to still disconnect  the session on replay.

Any inputs to resolve the same would be highly appreciated.

 

 


Approach to enable log for specific transaction in Load Runner Script.

$
0
0

HI All,

I have recorded a Load Runner script for some business transaction and added few transaction in the scripts like.

-------------------------------------------------------------------------------------

lr_start_transaction(Loadrunnerz_Home_Page1);

lr_end_transaction (Loadrunnerz_Home_Page1, LR_AUTO);

:

lr_start_transaction(Loadrunnerz_Home_Page2);

lr_end_transaction (Loadrunnerz_Home_Page2, LR_AUTO);

--------------------------------------------------------------------------------------------

When I run the script, I want to see only the log information of specific Transaction of lr_start_transaction(Loadrunnerz_Home_Page2); , in the Replay Log, not for all the Transaction Logs.

Can anyone please let me know the approches need to follow for it?

Regards

Subhendu

 

 

Re: Linux machine as load generator -Error -- Unresolved symbol : lr_db_connect

$
0
0

Hi Sachin,

Sorry about the delay in response.

lr_db_connect is only supported on a windows OS, not Linux.

This will explain your problem in running with Linux LG and that specific function.

You can run it in windows OS with no issues.

Good Luck,

Lior

An exception ocurred when adds Oracle monitor in Controller (LR 12.50)

$
0
0

Hi,

I'm having a problem with Oracle monitoring. After click on "Add Measurements..." I'm obtained the following error (I tried on other computers with same results):

error.png

The full text is:

Wlrun.exe caused an EXCEPTION_ACCESS_VIOLATION in module vmon.dll at 0023:59DF9FF6, DeActivateMeasurement()+0262 byte(s)

EAX=00000000 EBX=0B980B70 ECX=00000000 EDX=00000057 ESI=0B63E4F8
EDI=00000000 EBP=0B63E4E0 ESP=0B63E4A8 EIP=59DF9FF6 FLG=00010246
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B

0023:59DF9FF6 vmon.dll, DeActivateMeasurement()+0262 byte(s)

0023:59DFAAF3 vmon.dll, InitMonitor()+0275 byte(s)

0023:681876EA usermon.dll, LRResMonReportTSDataInternal()+13802 byte(s)

0023:6818937D usermon.dll, Init()+0061 byte(s)

0023:674BA02D res_mon.dll, LRMonExt_Close()+35085 byte(s)

0023:674BBB49 res_mon.dll, LRMonExt_Close()+42025 byte(s)

0023:674B5CEE res_mon.dll, LRMonExt_Close()+17870 byte(s)

0023:674BA9C5 res_mon.dll, LRMonExt_Close()+37541 byte(s)

0023:681C2190 lrmon_tools.dll, InvisibleWindowClass::~InvisibleWindowClass()+0288 byte(s)

0023:681C26CE lrmon_tools.dll, WinWakeUpServer::WakeItUp()+0046 byte(s)

0023:681C263F lrmon_tools.dll, WinWakeUpServer::OnMessage()+0111 byte(s)

0023:681C2585 lrmon_tools.dll, WinWakeUpServer::WndProc()+0101 byte(s)

0023:758362FA USER32.dll, gapfnScSendMessage()+0818 byte(s)

0023:75836D3A USER32.dll, GetThreadDesktop()+0215 byte(s)

0023:75840D37 USER32.dll, GetClientRect()+0197 byte(s)

0023:7584795A USER32.dll, CallWindowProcA()+0027 byte(s)

0023:606FCCA6 mfc110.dll, Ordinal2167()+0315 byte(s)

0023:758362FA USER32.dll, gapfnScSendMessage()+0818 byte(s)

0023:75836D3A USER32.dll, GetThreadDesktop()+0215 byte(s)

0023:758377D3 USER32.dll, CharPrevW()+0319 byte(s)

0023:75837BDA USER32.dll, DispatchMessageA()+0015 byte(s)

0023:674E4DD6 res_mon.dll, LRMonExt_Close()+210614 byte(s)

0023:606EC073 mfc110.dll, Ordinal291()+0373 byte(s)

0023:6F7EF2E9 MSVCR110.dll, _get_flsindex()+0097 byte(s)

0023:6F7EF2CD MSVCR110.dll, _get_flsindex()+0069 byte(s)

0023:75CE33AA KERNEL32.dll, BaseThreadInitThunk()+0018 byte(s)

0023:7791BF32 ntdll.dll, RtlInitializeExceptionChain()+0099 byte(s)

0023:7791BF05 ntdll.dll, RtlInitializeExceptionChain()+0054 byte(s)

 I don't have any script in the scenario.

Best regards

 

Re: An exception ocurred when adds Oracle monitor in Controller (LR 12.50)

$
0
0

Hi,

This may happen if only 64 bit version of Oracle client is installed and configured in PATH environment variable.

Install Oracle client 32 bit and make sure that path to its binaries is added to PATH.

 

Regards,

Alexander.

Re: Java Record Replay Compilation process failed

$
0
0

I searched the JNLP for heap and didn't find anything.

I runned the empty script and it was a succes.

The recording is done using user hooks with RMI protocol.

Now I am recording using a bat with -Xmx and -Xms arguments, but my recording is lasting too long. About 10 hours just to login. ( 60 000 lines in 6 h)

Re: Java Record Replay Compilation process failed

$
0
0

Hi,

I also faced similar kind of challenges in recording. I think the generated file is too long. It is causing the heap error.

 

Since it is a Client based application, I would suggest you to go with the any of the three protocol option.

1)GUI Vuser-> QTP script to be imported to Controller directly(Need License to execute in Controller)

2)Use Citrix Protocol

3)Use RDP Protocol

Re: Connecting to Oracle DB using lrd_open_connection

$
0
0

 I tried to find how to connect to Oracle db in internet, never found any where..


Re: Is there any workaround to record file uploadimg to the browser in true client protocol

$
0
0

Hi,

Maybe you can try it in this site: https://www.websupergoo.com/file-upload-1.htm

Please compare the steps you see in the script created by using above site with the ones you see in your script.

Also, can you please screenshot the upload form\UI in your application? A screenshot might help me understand whether or not you need to open a ticket or you can overcome it on your own with some instructions

Regards,

Shlomi

Re: Connecting to Oracle DB using lrd_open_connection

$
0
0

Hi,

You can use the lrd_open_connection API in following form:

lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "", "", "", "DSN=dsn_name;UID=user_name;PWD=password", Ctx2, 1, 0);

 

However, I suggest you to use Oracle 2-tier protocol rather than ODBC. It is more specific for Oracle DB and it has better support under Linux.

 

Regards,

Alexander.

Re: Connecting to Oracle DB using lrd_open_connection

$
0
0

Thank you AZm,   is there funcitonal in oracle tier 2 protocol to use or any direct utility available ?  

 

btwn: I am new bee to lr

Is there any way to add a missing step in True - Client?

$
0
0

Hi,

I would like to know whether there is any option to add a new step for missing step

I have come across this challenges when  i tried  with firefox and Internet Explorer with LR 12.02 where the recorded script worked fine in Internet explorer and not in firefox.  After comparing both script,, there was a missing request in firefox script .

I resolved by another method without adding any step . But I would like to know the  "NEW STEP OPTION".

Re: Is there any way to add a missing step in True - Client?

$
0
0

Not sure if I understand your question, but can't you just record the necessary new steps right at the point?

TruClient RowCount

$
0
0

All,

Is there a way to use Truclient to get a rowcount?

My goal is something like UFT, if I query for something I want to confirm that rows of data where returned?

I'm using 12.5 and I tried a generic browser action with no luck. Its able to see the table but cant figure out how to get a row count on it.

Thank You

-Shu

Re: Is there any way to add a missing step in True - Client?

$
0
0

Hi,

If the recording is not capturing the step needed for the business flow,, there should a method to add a step to successfully execute the business flow.

I found the step addition.

This can be done by the use "Wait for object" and "Generic object" to add javascript for object selection.  We can change the step functionality and create a new step.

Resolved.


Cookies not getting recorded in vugen (JSESSIONID)

$
0
0

Hi,

Can anyone please help how to overcome this issue.

Tried to record and reply one of web based application and found that Cookies not getting recorded in vugen (JSESSIONID).

Kindly let us know the possible solution.

Thanks,

Re: Cookies not getting recorded in vugen (JSESSIONID)

$
0
0

Hi,

Use web_add_cookie in the script and pass the cookie with the correct value  if the application needs the cookie information.

(or)

use web_cache_cleanup() and web_cleanup_cookies() to clear the cookies. Altenatively use Run Time Settings -> Browser Emulation-> Simulate a new user on each iteration and Clear cache on each iteration.

Re: App Session remains active even after replay ends in TruClient Ajax - IE

$
0
0

Hello,

I recommend upgrading to 12.02 patch 3 (if you are using LoadRunner) or 12.20 patch 2 (if you are a Performance Center user).

TruClient didn't support IE 11 in 12.01 release. It might be the reason for this issue.

 

Regardless, can you please share the script? I might provide a workaround

Regards,

Shlomi 

Re: TruClient RowCount

$
0
0

Hi,

Use a "Generic Object Action" (not Browser), choose the table as the object, change the default action of the step to "Evaluate JavaScript" and run JavaScript code in the code argument entry to identify that. 

Here are a couple of references, but you'd need to inspect your application DOM in order to determine how to apply below examples on your application

http://stackoverflow.com/questions/3053503/javascript-to-get-rows-count-of-a-html-table

http://www.w3schools.com/jsref/coll_table_rows.asp

Regards,

Shlomi

 

Re: An exception ocurred when adds Oracle monitor in Controller (LR 12.50)

$
0
0

Thank you very much, that solved our problem.

Regards

Viewing all 12134 articles
Browse latest View live


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