I have a bit of an urgent issue. I'm using the latest downloaded trial version of MSched - and I am running a script for a customer test. I am running several sessions (say, 5) on a terminal server - and given enough time, they will all crash except for one with an exception error. The error is "Exception EInOutError in module msched.exe at 001964B5 I/O error 32".
Please note that the sessions will all run for a certain (random) time, constantly looping - but they will eventually crash. Logging IS turned off.
I have tried using a couple of different versions of Msched - including 7.1 and the latest download, and have faced the same issue each time.
I have tried remarked out all the file I/O commands - including "Timestamp" and "Readln" (I used a fixed variable instead) and without any file read/write access, I don't get the issue.
I just tested taking out just the Timestamps (leaving the readln) - and I don't get the issue. Therefore I guess multiple writes to the same file are causing the issue with timestamp...
Code: Select all
Remark>Let>SK_DELAY=1000
Let>NewTemp=%TEMP_DIR%
Position>Temp,%NewTemp%,1,StartPos
Length>%NewTemp%,TmpLength
Let>%StartPos%=%StartPos%+5
Let>%TmpLength%=%TmpLength%-%StartPos%
MidStr>%NewTemp%,%StartPos%,%TmpLength%,%SessionNo%
WaitWindowOpen>J.D. Edwards Solution Explorer*
SetFocus>J.D. Edwards Solution Explorer*
WindowAction>1,J.D. Edwards Solution Explorer*
Press F4
Send Character/Text>002623
Press Enter
WaitWindowOpen>Enter in Sales Order (SO) - [Customer Service Inquiry]*
SetFocus>Enter in Sales Order (SO) - [Customer Service Inquiry]*
WaitPixelColor>32768,131,57,0
Press ALT
Send Character/Text>a
Release ALT
Let>Docs=0
Remark>Random>60,StartWait
Remark>Wait>%StartWait%
Label>CheckStartFile
IfFileExists>d:\msched\goforit.txt,StartSOE
Wait>5
Goto>CheckStartFile
Label>StartSOE
Wait>1
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Header]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Header]*
WaitPixelColor>32768,124,53,0
Label>GetShipto
Random>20,line
ReadLn>d:\stresstest\Shipto1114.txt,line,shipno
If>shipno=##EOF##,GetShipto
MidStr>%shipno%,1,3,CheckSHIPNO
If>CheckSHIPNO=lin,GetShipto
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - Start of Sales Order Document
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Let>Docs=Docs+1
WaitPixelColor>32768,124,53,0
WaitPixelColor>16777215,640,176,20
If>WPC_RESULT=FALSE,CancelDoc
WaitPixelColor>32768,124,53,0
Label>Branch
Send Character/Text>1114
Press Tab
Press Tab
Remark>GetPixelColor>640,176,ColorResult
Remark>If>ColorResult<16777215>ShipTo
Label>BadBranch
MessageModal>Bad Branch Entered - Ending - %ColorResult%
Goto>EndAll
Label>ShipTo
Send Character/Text>%shipno%
Press Tab
Remark>GetPixelColor>326,363,ColorResult
Remark>If>ColorResult<16777215>BeginDoc
Label>BadShipTo
MessageModal>Bad Ship To Entered - Ending - %ColorResult%
Goto>EndAll
Label>BeginDoc
Send Character/Text>JONSTEST
Press Tab
Wait>1
Press Alt
Send Character/Text>o
Release Alt
WaitPixelColor>65535,743,589,0
WaitPixelColor>32768,124,53,0
Press Alt
Send Character/Text>o
Release Alt
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Detail Revisions]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Detail Revisions]*
WaitPixelColor>32768,124,53,0
Remark>Wait>1
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - Start of Sales Order Detail
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Let>ItemCount=0
Label>EditLINE
Let>ItemCount=ItemCount+1
Send Character/Text>1
Press Tab
Press Tab
Label>GetItem
Random>24,line
Label>Item
ReadLn>d:\stresstest\items1114.txt,line,itemno
If>itemno=##EOF##,GetItem
MidStr>itemno,1,3,CheckITEMNO
If>CheckITEMNO=lin,GetItem
Goto>GotItem
Label>GotItem
Send Character/Text>%itemno%
Press Down
Press Shift
Press Tab
Press Tab
Release Shift
If>ItemCount=5,EndDoc
Goto>EditLINE
Label>EndDoc
WaitPixelColor>32768,124,53,0
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - End of Sales Order Detail
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Wait>2
WaitPixelColor>32768,124,53,0
Press ALT
Send Character/Text>o
Release ALT
WaitWindowOpen>Enter in Sales Order (SO) - [Sales Order Header]*
SetFocus>Enter in Sales Order (SO) - [Sales Order Header]*
WaitCursorChanged>1
WaitPixelColor>16777215,750,500,0
WaitPixelColor>32768,124,53,0
Let>MessageText=
ConCat>MessageText,%SessionNo%
ConCat>MessageText, - End of Sales Order Document
TimeStamp>d:\msched\results\soe.txt,%MessageText%
Label>NextSOE
If>Docs=500,EndAll
Wait>1
Goto>StartSOE
Label>CancelDoc
Press ALT
Send Character/Text>c
Release ALT
Goto>StartSOE
Label>EndAll