| Test Manager FAQ |
|
This section describes the frequently asked questions for the TestManager application.
1. How do I find out the location where Testcases are executed, so that I can use absolute pathnames to refer to my Testcase files The sandbox for Testcase executions is specified in the testmgr.properties file. It is possible to modify this value if necessary. 2. What happens if I invoke two TestManager programs concurrently ? This should not cause any problems, but if both instances are using the same workspaces, changes made in one will overwrite the changes from the other. If the two copies are using different workspaces then there will be no problems. 3. When using the RunExecutable Execution Procedure, the system is ignoring the ExeArgs property that I set, and always invokes my program with no arguments. Why is this ? The early documentation for the application incorrectly gave the property name as ExeArgs. It should in fact be ExeArguments. 4. How can I refer
to my input files within the Testcase execution. Should I use relative
or absolute pathnames ? There are a number of commercial tools available that are focused on testing the user interface of an application. These tools are usually based around a capture-replay technique, meaning that the tool captures the user operating the interface, then replays the same actions each time that the testcase is executed. In order to verify the execution, a number of approaches are used, including the comparison of screen dumps, or tests for the presence of a dialog window, and so on. Test Manager does not provide a capture-replay facility. It is possible to use Test Manager in conjunction with a capture-replay tool, because such tools usually store the user interface actions in a script, which is re-executed when the testcase is run. So the scripts may be stored as input files in Test Manager, then RunExecutable, or a custom execution procedure, can be used to invoke the capture-replay tool. The capture-replay approach has its limitations, and these are well documented in the test automation literature. While the technique can be useful for quickly constructing testcases, it can be difficult to build good maintainable test suites using such an approach. It is often better to test the functionality of a system by targetting the "engine" of the system, rather than the user interface. In a typical three-tier application, this would mean writing testcases that exercise the functionality of the middle-tier components containing the business logic, by invoking those components directly, rather than indirectly testing them via the presentation tier. A tool such as Test Manager is ideally suited for this approach. 6. How do I extend the classpath for use within my custom procedures ? When writing a custom procedure, it may
be necessary to use other classes that may be located in jar files elsewhere.
It may appear that adding these jar files to the Classpath
property in Testmgr.properties will allow the classes to be used.
Unfortunately this is not the case. That classpath is only used when loading
the custom procedure classes themselves. The command-line used to invoke
Test Manager will need to be modified, by adding the extra jar files
to the classpath argument. |