Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: automating loadrunner start

by grashoper (Monk)
on Apr 22, 2009 at 21:03 UTC ( #759404=note: print w/replies, xml ) Need Help??


in reply to Re: automating loadrunner start
in thread automating loadrunner start

I get this error failed to start loadrunner the system cannot find the file specified in gui.pl line 4 ret=256. I changed as follows and now I get a -1 (doesnt that mean its already running?)
use Win32::GuiTest qw(WaitWindow FindWindowLike SetForegroundWindow Se +ndKeys); use strict; my @argv=("E:\\MIBOR_TimingTest\\MIBOR\\MIBOR.usr"); system(my @argv)==0 or die "Failed to execute Loadrunner (ret=$?): $^E +"; #sleep 600; my @whnds=FindWindowLike( undef,"^Mercury Virtual User Generator"); if (!@whnds){ die "Cannot find window with title/caption Mercury"; } else{ printf("Window handle of Mercury is %x\n", $whnds[0]); } SetForegroundWindow($whnds[0]); SendKeys("{F5}");

Replies are listed 'Best First'.
Re^3: automating loadrunner start
by runrig (Abbot) on Apr 22, 2009 at 21:08 UTC
    my @argv=("E:\\MIBOR_TimingTest\\MIBOR\\MIBOR.usr"); system(my @argv)==0 or die "Failed to execute Loadrunner (ret=$?): $^E +";
    No, you do not want that second "my".
      oh right you are, that makes it a completely seperate variable doesn't it?
        Right. And I believe "use warnings" would tell your that.
Re^3: automating loadrunner start
by almut (Canon) on Apr 22, 2009 at 21:26 UTC
    cannot find the file specified in gui.pl line 4 ret=256

    $? being 256 simply means the program exited with a return code of 1 (i.e. $? >> 8) — see system for the details.

    Whatever that means... hopefully you can find more about the circumstances under which this happens in the LoadRunner docs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://759404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2022-01-28 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?