How to map Network drive in LR script...

125 views
Skip to first unread message

pedda swamy

unread,
Aug 22, 2008, 6:23:14 AM8/22/08
to LR-Loa...@googlegroups.com

Hi All,
 
 i m testing performance of GUI application which is developed in Java.The Communication happens with HTTP protocol.
 
 
The actual scenario is as follows.

1. We have to map a shared network drive.

2. When we hit the URL the java application will download from the drive and launch the GUI of the application.

3. Once the required transaction is  done, it will update the transaction in corresponding database and will create some log files in the same shared network drive.

 The issue here is,

 I have used Web HTTP/HTML protocol to record the script.

Here the network drive is mapped manually and started recording. While recording the script it has created the log files in the share drive.After parameterizing  the script and when we ran multiple iterations the transactions were captured in corresponding Database but corresponding logs were not generated in share drive.

 So could you please suggest any functions so that in the script itself we will map the share drive so that log files gets created.

Thanks,

Swamy.

papayamilkshake

unread,
Aug 22, 2008, 11:29:17 AM8/22/08
to LoadRunner
When you refer to shared network drive, is it Windows network drive?
Dun think it will work with Web (HTTP/HTML).

"When you use Windows to map a Drive, Windows interfaces with the
drive and
the traffic on the Network to or from the drive is according to the
Protocols that are installed and the set of priorities (Can TCP/IP for
Internet and Local, and or NetBEUI for local etc.)."
(Source: http://www.velocityreviews.com/forums/t371370-what-protocol-is-used-for-network-drive.html)

Instead, use winsock to find out what is the actual protocol. :)

-papayamilkshake
http://loadrunnertnt.com

pedda swamy

unread,
Aug 25, 2008, 9:18:38 AM8/25/08
to LR-Loa...@googlegroups.com
yes, it is Windows network drive.
 

The actual scenario is as follows.

1.We have to map a shared windows network drive.

2.When we hit the URL the java application will download from the share drive and launch the GUI of the application.

3.Once the required transaction is done, it will update the transaction in corresponding database and will create some log files in the same shared network drive.

 The issue here is,

1.I have used Web HTTP/HTML protocol to record the LoadRunner script.

2.Here the network drive is mapped manually and started recording.

3.While recording the script it has created the log files in the share drive.

4.After parameterizing the script and when we ran multiple iterations the transactions were captured in corresponding Database but corresponding logs were not generated in share drive.

here are the sample xml requests that sent to server while recording the script.

 

web_custom_request("RadioStatusRequest",

"URL=http://server name",

"Method=POST",

"Resource=0",

"Referer=",

"Mode=HTML",

"EncType=text/xml; charset=ISO-8859-1",

"Body=<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<DATA_TRANSMISSION

xmlns=\"http://www.xyz.com/Schemas/DataTransmission\"

xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"

xsi:schemaLocation=\"http://www.xyz.com/Schemas/DataTransmission

DRXM.xsd\"><HEADER><ISA_SENDER_ID>1</ISA_SENDER_ID><FILE_ID>fileID</FILE_ID>

<FILE_SENT_DATE>123456789</FILE_SENT_DATE></HEADER><PAYLOAD><ORDER><TRANSACT

ION_INFO><TRANS_ID>status20080821880_machine</TRANS_ID></TRANSACTION_INFO><T

RANSACTION>"

"<WHOLESALE><RADIO><UAS_STATUS_REQUEST><RADIO_ID>{Radio}</RADIO_ID></UAS_STA

TUS_REQUEST></RADIO></WHOLESALE></TRANSACTION></ORDER></PAYLOAD></DATA_TRANS

MISSION>",

LAST);

 

 and

 

web_custom_request("Order",

"URL=http://xyz.com",

"Method=POST",

"Resource=0",

"Referer=",

"Mode=HTML",

"EncType=text/xml; charset=ISO-8859-1",

"Body=<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<DATA_TRANSMISSION

xmlns=\"http://www.xyz.com/Schemas/DataTransmission\"

xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"

xsi:schemaLocation=\"http://www.xyz.com/Schemas/DataTransmission

DRXM.xsd\"><HEADER><ISA_SENDER_ID>1</ISA_SENDER_ID><FILE_ID>fileID</FILE_ID>

<FILE_SENT_DATE>123456789</FILE_SENT_DATE></HEADER><PAYLOAD><ORDER><TRANSACT

ION_INFO><TRANS_ID>userid20080821276_machine</TRANS_ID></TRANSACTION_INFO><T

RANSACTION>"

"<WHOLESALE><RADIO><ACTION_PREACTIVATE

PKG_PART_NUM=\"1723\"><RADIO_ID>{Radio}</RADIO_ID></ACTION_PREACTIVATE></RAD

IO></WHOLESALE></TRANSACTION></ORDER></PAYLOAD></DATA_TRANSMISSION>",

LAST);

 here is there any need for correlation?

 Also could you please suggest any functions so that in the script itself we

will map the windows network share drive so that log files gets created.

 Thanks,

Swamy.

papayamilkshake

unread,
Aug 25, 2008, 12:59:47 PM8/25/08
to LoadRunner
My guess is shared windows network drive will not be recorded in Web
(HTTP/HTML) as they are different communication protocol (NetBEUI)
thus resulting in the corresponding log files not being generated.
The web services should be making request (inserting) into database
directly without relation to the log files. You will need to know how
the log files are being generated during this process.

Don't think there is any need for correlation. Just need to know the
process of log file generation for you to emulate. :)


regards
papayamilkshake
http://loadrunnertnt.com



On Aug 25, 9:18 pm, "pedda swamy" <peddaswam...@gmail.com> wrote:
> yes, it is Windows network drive.
>
> The actual scenario is as follows.
>
> 1.We have to map a shared windows network drive.
>
> 2.When we hit the URL the java application will download from the share
> drive and launch the GUI of the application.
>
> 3.Once the required transaction is done, it will update the transaction in
> corresponding database and will create some log files in the same shared
> network drive.
>
>  The issue here is,
>
> 1.I have used Web HTTP/HTML protocol to record the LoadRunner script.
>
> 2.Here the network drive is mapped manually and started recording.
>
> 3.While recording the script it has created the log files in the share
> drive.
>
> 4.After parameterizing the script and when we ran multiple iterations the
> transactions were captured in corresponding Database but corresponding logs
> were not generated in share drive.
>
> here are the sample xml requests that sent to server while recording the
> script.
>
> web_custom_request("RadioStatusRequest",
>
> "URL=http://servername",
> On 8/22/08, papayamilkshake <papayamilksh...@gmail.com> wrote:
>
>
>
> > When you refer to shared network drive, is it Windows network drive?
> > Dun think it will work with Web (HTTP/HTML).
>
> > "When you use Windows to map a Drive, Windows interfaces with the
> > drive and
> > the traffic on the Network to or from the drive is according to the
> > Protocols that are installed and the set of priorities (Can TCP/IP for
> > Internet and Local, and or NetBEUI for local etc.)."
> > (Source:
> >http://www.velocityreviews.com/forums/t371370-what-protocol-is-used-f...
> > )
Reply all
Reply to author
Forward
0 new messages