Results 1 to 2 of 2

Thread: Autorun JavaScript

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Geek_Guest
    Guest

    Autorun JavaScript

    I have a Java user script and prior to running the Java script I want connect to web application with user id and password and with 5 minutes gap once the web application opens, I want the Java script to run, I already have the Java user script running fine how do I add a script or include so that I can enter a new URL and login and make the rest of Java script run.

    Thanks in advance

    MIKE

    Question asked by visitor Mike


  2. #2
    Contributing Member
    Join Date
    Sep 2007
    Answers
    50

    Re: Autorun JavaScript

    Hi,

    This is a tricky process, but it can be done by following these steps:

    1)Record the web portion of the script using the web(HTTP/HTML) protocol. This will create a C Vuser script emulating the client actions.
    2)Use sed.exe with the rules supplied by the LoadRunner knowledge base to convert the C Vuser script into a Java vuser script.
    3)Copy and paste the web(Java) script where you want it to be in the Java Vuser script that you have already created.
    4)Add "import Lr.web.*;" to the globals.java file.

    Hope this works, good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact