That was close and got me thinking, i solved it using that info. I made another unit and put the routines i wanted in order i.e.
//USEUNIT SmokeTestSource
function RunSmokeTestDev()
{
bringToFront()
testSizing()
ResizeWindow()
createSceanrio()
setViewpoint()
BasicViewpoint()
Palette()
BasicCulture()
BasicBehavior()
CultureAttach()
BehaviorAttach()
exitCancel()
exitDontSave()
}
I am then making another but it will be
function SmokeTestBuild()
function SmokeTestQA()
etc
then from TestExecute i will call
TestExecute.exe <mypjs> <unit> <routine>
that will be decided by the goal at that time.
I did a lot of reading past few days and realized i should not have all my main code in my test file jus tthe routines i want bundled to keep it clean. This is my first job that has code beyong general scripting so i have a lot to learn. thank you for link it opened my eyes :)