Forum Discussion

lhedgehog's avatar
lhedgehog
Occasional Visitor
2 years ago
Solved

TestComplete Recovery System

Hello! I am testing a desktop Windows app using Record&Play. I wonder, if there is a recovery system in TC like in silk test. https://www.microfocus.com/documentation/silk-test/205/en/silktestclass...
  • KB1's avatar
    2 years ago
    In TestComplete, you can use the "Reset" operation to revert the application under test (AUT) to its initial state. This operation can be added to your test script or script routine to restore the AUT to its initial state before executing a test case or after a crash.

    To add the "Reset" operation to your test script, do the following:

    In the TestComplete IDE, open the test project that contains the test script in which you want to add the "Reset" operation.
    In the Project Explorer panel, right-click the test script and select "Edit" from the context menu.
    In the test script editor, go to the place where you want to insert the "Reset" operation.
    From the "Script" pane of the Object Browser, drag the "Reset" operation and drop it at the desired location in the test script.
    Alternatively, you can also use the "Reset" operation in a script routine and call the routine from your test script. This can be useful if you want to reuse the reset logic in multiple test scripts.

    To add the "Reset" operation to a script routine, do the following:

    In the TestComplete IDE, open the test project that contains the script routine in which you want to add the "Reset" operation.
    In the Project Explorer panel, right-click the script routine and select "Edit" from the context menu.
    In the script routine editor, go to the place where you want to insert the "Reset" operation.
    From the "Script" pane of the Object Browser, drag the "Reset" operation and drop it at the desired location in the script routine.