SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Is any function to copy zip file by LR script.

    1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using?
    LR 9.1

    2. What is the protocol you are recording?
    WEB HTTP/HTML

    3. If HTML - are you using HTML-Advanced with URLs or,
    YES

    5. Which LoadRunner/PerformanceCenter feature (FPs) or service packs are you using?
    NONE

    6. VuGen Recording - are you using Old or New Recording Engine?
    NEW

    7. You must list here the specifc Licensed Vuser type for your specific issue AND the license amount you have for this Vuser protocol - per the example below
    WEB / 750

    8. Is your support/maintenance contract current and active?
    YES

    9. What platform(s) (PCs) and Operating Systems (Windows-XP, etc.) are being used for load generators and controllers? Include version and service packs (SP1 or 2, etc.)
    GEN: WIN XP SP2
    CONTROL: WIN 2003 R2 SP2

    10. If you have filed a service request with HP/Mercury, what have they told you at this point with respect to your issue?
    NONE FILED YET

    Hi All,

    I am having trouble in creating a script where in I have to copy folder from one location and paste it to another location (system drive).
    Is there any way in Loadrunner through which we can move the folder from one location to another? And how this would be handled while executing the scenario on controller?

    Thanks,
    Vijay

  2. #2
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,041
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Is any function to copy zip file by LR script.

    Yes, there are many methods for handling a file copy in code, from issuing a system() call with a copy command to taking advantage of Windows system functions for the movement of files. The actual implementation is up to you, but there is no prohibition against this type of activity.
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is any function to copy zip file by LR script.

    Can we capture a pop window, which have a 'save' button on it to save the zip folder.

  4. #4
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is any function to copy zip file by LR script.

    Do a recording to see what is recorded. If using Click 'n Script or Citrix - probably.

  5. #5
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,041
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Is any function to copy zip file by LR script.

    [ QUOTE ]

    Can we capture a pop window, which have a 'save' button on it to save the zip folder.


    [/ QUOTE ]

    Here you may have an fundamental issue in understanding how LoadRunner works. Consider the OSI Model
    <ul type="square">
    Politics...Nothing happens before...
    Application
    Presentation
    Session
    Transport
    Network
    Data Link
    Physical
    Power...Nothing moves without...[/list]

    (Note: The items in italics are my own additions in a probably poor attempt at humor)

    LoadRunner is really concerned with the top three layers of the OSI model, from Application through Session. Depending upon the type of virtual user, be it Citrix or GUI at the top of the stack or Winsock at the session layer you are going to have a layer specific relationship with LoadRunner. HTTP, for example, is either termed a presentation layer protocol or an application layer protocol depending upon who you are speaking with at the moment. It is below the Graphical interface layer, so any events concentrated in that layer will not be recorded. Click N Script (Click N Pray?), AJAX moves further up the stack into the GUI domain, Graphical virtual users operate directly against the end user interface and Citrix is way at the top. If you want to record a dialog then you need a virtual user development model which records GUI events.

    The result of a "Save As" dialog often winds up in the submission of a form when downloading information, but still the untrained LoadRunner engineer obsesses over why the dialog is not recorded. It does not matter in such a case, for the output of the GUI event has been recorded at the OSI layer specific to your vuser development model and protocol selected.

    Consider the following

    End user Interfaces with A Citrix Client (Politics Layer)
    <ul type="square">Speaks to[/list]
    Citrix Server (Citrix Virtual User Protocol) (Application Layer)[/list]Which operates[/list]
    Graphical virtual user (GUI Virtual User) (Application Layer)
    <ul type="square">Speaks to[/list]
    ODBC Driver Manager (ODBC Protocol) (Application Layer)
    <ul type="square">Speaks to[/list]
    ORACLE OCI Driver (ORACLE two Tier Protocol) (Application/Presentation Layer)
    <ul type="square">Speaks to[/list]
    Sockets Interface (Winsock Protocol) (Presentation/Session Layer)
    <ul type="square">bound to[/list]
    TCP (Session layer)
    <ul type="square">shipped in[/list]
    IP (Transport Layer)
    <ul type="square">Shipped through[/list](
    Gigabit Ethernet (Network Layer/Data Link Layer)
    <ul type="square">Placed on[/list]
    Multimode Fiber (Physical Layer)
    <ul type="square">depends upon[/list]
    60Hz single phase, 120 volt (Power Layer)



    For each of the conversations and protocols listed above you are going to have a distinct set of conversation elements depending upon the layer of the OSI model. For the top layer, Citrix, you are going to have a set of mouse and key events synchronized with dialogs. For the GUI Virtual user you are going to operate against a set of rich objects associated with the development model of the virtual user. For ODBC you are going to operate against an application layer protocol for a generic SQL grammar and error handling. For Oracle two-tier you are going to have an ORACLE specific conversation with the database. And finally for Winsock you are going to spend hours upon end pulling your hair out trying to look for the one last piece of information you need to correlate before you can get this tedious thing working and you can get the heck out of the office where you have been staring at the monitor for hours on end trying to look for the minute differences between virtual user sessions. Well, you get the idea.

    It is with only the top two protocols listed, Citrix and GUI that you would have any hint of a file system dialog. Grab your college texts and become familiar again with the OSI model. This is a foundation item not only for LoadRunner but for any performance testing tool, open source or commercial in nature.

    James Pulley
    CTO/Performance Architect, ScriptFarm

    How much is it costing you to use multiple unskilled, untrained personnel for your performance work with these individuals taking up to ten times longer to complete basic tasks in the development, test execution and analysis phases? Find out why organizations are switching from poor performing onshore and offshore providers. Put us to the test, ScriptFarm.
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:21 PM.

Copyright BetaSoft Inc.