grashoper has asked for the wisdom of the Perl Monks concerning the following question:
step 2 is to check for the existince of string=Vuser Terminated. in output.txt a file generated by the loadrunner test, if found it should kill loadrunner and then restart it. finally I wanted to account for hangs but not sure how to do that. so I call find.pl if I can figure out how to that is.Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "E:\MIBOR_TimingTest\MIBOR\mibor.usr", 9 ' Give loadrunner time to load WScript.Sleep 500 ' Do The Paste WshShell.SendKeys "{F5}"
#Here I need to call killp.pl with arguments..again not sure how to do this from within a perl script. #Here I may need to add some code to check how long has #this been going on if too long then send me an alert etc..#!/usr/bin/perl use win32::OLE qw(in); $search="Vuser End"; open(INFO, "E:\\Mibor_TimingTest\\Mibor\\output.txt"); @array=<INFO>; close (INFO); foreach $line(@array){ if ($line =~ /$search/) { do this stuff etc.. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: automating tests
by grep101 (Initiate) on Oct 30, 2008 at 21:05 UTC | |
by learn2earn (Acolyte) on Oct 31, 2008 at 01:29 UTC | |
by Anonymous Monk on Oct 31, 2008 at 04:30 UTC | |
by Anonymous Monk on Dec 22, 2008 at 03:38 UTC |