Forum Discussion
larryx
12 years agoFrequent Contributor
def thrdIndex = context.ThreadIndex
j=0
fileIndex = thrdIndex
myFileName = list[fileIndex].toString() //get selected filename
myFile = new File(myFileDir + myFileName)
toFile = new File(toFileDir + toFileName)
toFile.append("\r\n "+ now + " ...thrdIndx= "+ thrdIndex + " ...j= "+ j +" "+ myFileName)//write picked up filename into this file
In my 1st post I mentioned the expected behavior. In the last post, my expected behavior was even more simple.
1. start threads 1/2
2. wait 5 sec
3. Start threads 3/4
4. wait 5 sec
5. Start threads 5/6
Yes, all done in groovy script.
BTW, my simple strategy log records:
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 1 ...j= 0 SE_Text_846.txt
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 2 ...j= 0 SE_Text_847.txt
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 0 ...j= 0 SE_Text_845.txt
Thanks,
Larry
j=0
fileIndex = thrdIndex
myFileName = list[fileIndex].toString() //get selected filename
myFile = new File(myFileDir + myFileName)
toFile = new File(toFileDir + toFileName)
toFile.append("\r\n "+ now + " ...thrdIndx= "+ thrdIndex + " ...j= "+ j +" "+ myFileName)//write picked up filename into this file
In my 1st post I mentioned the expected behavior. In the last post, my expected behavior was even more simple.
1. start threads 1/2
2. wait 5 sec
3. Start threads 3/4
4. wait 5 sec
5. Start threads 5/6
Yes, all done in groovy script.
BTW, my simple strategy log records:
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 1 ...j= 0 SE_Text_846.txt
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 2 ...j= 0 SE_Text_847.txt
Mon Feb 03 16:51:26 EST 2014 ...thrdIndx= 0 ...j= 0 SE_Text_845.txt
Thanks,
Larry