Forum Discussion

ahackmann's avatar
ahackmann
Occasional Contributor
15 years ago

Using one Manual Step in diffrerent Manual Tests

Hello,



i’m trying to create different Manual Tests (with Test Complete 8) which mostly contains the same Test steps. The Problem is, that changing a Test Step (like Startup) affects "all" Manual Tests and has to be changed manually.


So how can I use one Test Step in different Manual Tests. Is there a possibility to create an Test Step only once and use them individually in all Manual Tests? Or are the other opputunities to manage those Manual Test?





Thanks,



Andreas

6 Replies

  • There are at least two ways to do this, and likely more. Using a variable, or calling a different keyword/script test.



    Within Test #1, you can insert a line that calls Test #2. Have Test #2 contain the thing that changes and simply update that test. (Or vice versa.)



    That's what I do. Good luck.
  • ahackmann's avatar
    ahackmann
    Occasional Contributor
    Thanks for your answer Chuck.



    But how can I insert within Test#1 an line thats calls Test#2? Both tests are Manual Tests.

     

    At first I wrote a Script that starts my Testcase#1 and after that calls my other Testcases(2,3,4). Within Testcase#1 (see Screenshot#1) i want to call reuseable Manual Tests like "AutoConfig", "Startup" and so on. That works properly fine but if I call a ManualTest from the Script i have to press the "Begin Test" Button every time. 



    My other attempt was to create for every Testcase an own ManualTest. (see Screenshot#2). There I got the problem that i can not call an TestStep like "Autoconfig" in different ManualTests.

     

    So i hope I could explain what my problem is.





    Thanks



    Andreas
  • I just created a keyword test that clicked the desktop four times. After the second click, I manually inserted "Run Keyword Test" then converted it to Jscript. Here's what that one looked like.



    function Test2()

    {

      //Clicks at point (706, 763) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);

      //Clicks at point (1048, 765) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);

      //Runs a keyword test.

      KeywordTests.Test2.Run();

      //Clicks at point (800, 661) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);

      //Clicks at point (994, 659) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);

    }



    Next I changed the keyword test and change it so it used Run Script Routine. Here's what that one looked like:



    function Test2()

    {

      //Clicks at point (706, 763) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(706, 763);

      //Clicks at point (1048, 765) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(1048, 765);

      //Runs a script routine.

      Test2();

      //Clicks at point (800, 661) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(800, 661);

      //Clicks at point (994, 659) of the 'FolderView' object.

      Aliases.Explorer.wndProgman.SHELLDLL_DefView.FolderView.Click(994, 659);

    }





    If you're using a different scripting language or the above examples don't work for you, I suggest creating a Keyword Test, inserting the "Run Script Routine" command, then converting the keyword test to a script. Check how the script works and you will have an example on how to proceed.



    I hope that helps.



    Chuck



    PS: I can't open your attached screenshots, but I think it's due to a bug in the Forum itself. I've reported the forum bug to SmartBear.
  • ahackmann's avatar
    ahackmann
    Occasional Contributor
    Thx for your answer Chuck.



    Unfortunately I can not test your idea today. But I will response as soon as I can. Now I uploaded the Screenshots as jpg, maybe now you can open them.





    Best Regards



    Andreas
  • Andreas,



    When you wrote "manual tests" it was a term I hadn't seen before, so I incorrectly believed you meant "keyword tests". I haven't had a need to add the Manual Test portion to my test suite. However, I did see there was a lot of information in the TestComplete Help included with the program. I recommend looking in there - it may have your answer.



    Good luck, Andreas,



    Chuck