Forum Discussion

fernando_miguel's avatar
fernando_miguel
Occasional Contributor
11 years ago

Project suite variables not loaded in TestExecute 10.30

I have a project suite where some temporary variables have been defined. These variables are passed to a Javascript utility function (inside a shared project) called from a keyword test from another project. 



Script file where utility function is is linked to project with keyword tests (using "Add existing file ...").



Project with keyword tests defines several project items (one per keyword test). 



If I execute the Project from TestComplete (TC 10.30) it is correctly executed, but when I try to execute it from TestExecute it fails because variables defined in project suite are not resolved (they are received as "undefined" in script function).



TestExecute is invoked from a batch file with following command line:



start /wait TestExecute.exe "%suiteName%.pjs" /run "/project:%project%" %projectItemArg% /exit /SilentMode "/ErrorLog:%errorFile%" "/ExportLog:%logFile%" /DoNotShowLog /ForceConversion %appUrlArg% %testToRunArg%





  • fernando_miguel's avatar
    fernando_miguel
    Occasional Contributor
    Yes, all the linked projects are inside the same suite (only one).



    Variables are not initialized since they take their default value (they do not change).  This works perfectly in TestComplete but not in TestExecute. Moreover I have changed the location of the variables from ProjectSuite to every Project ant it works perfectly. This seems to be a BUG with TestExecute.

  • rgratis's avatar
    rgratis
    Frequent Contributor
    Do all projects (source and linked) exist on the TestExecute system?



    Also, are the variable values being set up in whatever test item you are executing?