Contributions
Command Line Installation of TestComplete
We are currently working on automating the deployment of TestComplete and TestExecute. To do this, we use the command line installation options shown in this document. TestComplete 1030.exe -aq/z""-silentmode-NoIntegr-Path"C:\Program Files(x86)\SmartBear\TestComplete 10" "" While everything works properly for TestExecute, we get errors after installing TestComplete saying that mobile features are not licensed (which is completely correct.)In the UI installation, this part of the installation is optional. The documentationshows an option for excluding the integration features, but no similar command line switch for mobile features. Does such a command line switch exist? Happy Testing, G1.1KViews0likes1CommentRe: Are you using Jenkins?
We've been using TestComplete and Jenkins/Hudson for 3 years. Overall, it is a fairly good match. Jenkins is stable and easy to use. We've created a TestComplete framework that produces nUnit output for test cases, so they can be processed by Jenkins. This step is vital if you want to take full advantage of Jenkins. There are two downsides to Jenkins. One, there are numerous jobs that set up environments and "glue together" various pieces of testing. When others want to know the status of testing, it is hard to remove these jobs from consideration and to aggreate tests run in multiple jobs into one simple view. For this, we created a results database. Now, automation folks use Jenkins, but everyone else looks at an external dashboard. The main downside is that Jenkins is only good when there are simple relations between test suites/test cases. For example, you have to run installation on a server before running tests on multiple clients. We are now facing much more complicated workflows spread across multiple environments, with numerous interactions among all of the test cases.Doing this with Jenkins will not be practical. Regards, G1.2KViews0likes0CommentsRe: Handling exceptions in different units
There was a post on SQA Forums several years ago about how to handle this issue. Essentially, it is a 4 step process. Overall, it is awkward and a bit ugly, but it does work. 1. Create an exception class that can be used to percolate exceptions up the call stack. function CustomException (value1, value2) // Actually, this class can take mutiple values, not just strings. // Unfortunately, I can't share our implementation. { this.message = value1 this.description = value2 } 2. Use try/catch blocks to translate exceptions into return values of your exception class. function Test1 () { var returnValue = null; try { // test case goes here. } catch (exception) { returnValue = new CustomException (exception); } return (returnValue); } 3. Add a CheckResult () wrapper function in every script unit and use it when calling other methods. function BiggerTest () { CheckResult (Test1 ()) } function CheckResult (value) { if (value instanceof CustomException) { throw value; } else { return (value); } } 4. Deal with the exceptions at the appropriate level, usually at the level of the Main () function. Happy Testing, Glen Accardo771Views0likes0CommentsTestExecute Exit Code on Vista
I have a TestComplete project that I run on three operating systems: Vista-64, XP-64, and XP-32. In the test logs, everything is fine--there are no errors or warnings reported. When I use Hudson to launch TestExecute, it works fine on the XP systems, but not on the Vista system. On Vista, there is always an exit code of -1, even when the TestComplete logs say that everything is fine--no errors and no warnings. I have narrowed the problem down to using script extensions. If I run a simple script such as the following, the exit code is zero. function Main () { Log.Message ('hello world'); } However, if I make a script extension that contains only Log.Message and call it instead, then I get an exit code of -1 on Vista while it works fine on XP. What &$*%^@ Vista setting do I have to change to get this exit code working properly? Or, should I simply wrap the TestExecute call in a .bat file? Regards, G12KViews0likes1Comment