I have about 10 variable that have to change in a template for the template to work for my next customer.
So instead of editing the template in 10 location I am trying to create a config script that sets all the variable for the template. So the only change is the the location of the config file.
I have functional test working. But I can not get this last part to wrok correctly.
Simple Config file is as follows
File Location#c:/scripts/customer/cust1.txt
Wait time low#300
Wait Time High#600
I read the config as a block.
I then parse the block with three macros
each parses following the # sign to get that line number.
Each returns the correct line front the file when run in debugger.
The problem is when I try to read a line from the text file on line 1.
Debugger waits about 2minutes, and the returns an error that text file is locked
I am using the following macro to read it
{-File.GetString-|-{-FieldData.FieldData-|-●8●8●6●4●6●6●-|-≡1≡8≡1≡4≡7≡4≡3≡9≡7≡2≡-}-|-0-|-false-}
Were the Field data is the result of the reg ex that grabs the text file.
If I replace the Field data portion with the location it works fine. When I try to input the text file location with the variable it crashes..
Can any body point me in the right direction?
My random numbers work fine from the high low variable.
Thanks
DS
So instead of editing the template in 10 location I am trying to create a config script that sets all the variable for the template. So the only change is the the location of the config file.
I have functional test working. But I can not get this last part to wrok correctly.
Simple Config file is as follows
File Location#c:/scripts/customer/cust1.txt
Wait time low#300
Wait Time High#600
I read the config as a block.
I then parse the block with three macros
each parses following the # sign to get that line number.
Each returns the correct line front the file when run in debugger.
The problem is when I try to read a line from the text file on line 1.
Debugger waits about 2minutes, and the returns an error that text file is locked
I am using the following macro to read it
{-File.GetString-|-{-FieldData.FieldData-|-●8●8●6●4●6●6●-|-≡1≡8≡1≡4≡7≡4≡3≡9≡7≡2≡-}-|-0-|-false-}
Were the Field data is the result of the reg ex that grabs the text file.
If I replace the Field data portion with the location it works fine. When I try to input the text file location with the variable it crashes..
Can any body point me in the right direction?
My random numbers work fine from the high low variable.
Thanks
DS