tosca

Input Order in Tricentis Tosca


I am kicking the tires on Tricentis Tosca with their free trial, and while the tutorial went swimmingly, my very first attempt to do a test of my own I ran into a scenario I can't figure out. I decided to try doing a test on the Windows calculator app, I scanned the screen, picked all the controls I cared about, and saved it into a Module named "Calculator". I then created my first test case named "Add", pulled in my "Calculator" module, and decided to "Click" on One, Plus, Two, Equals, and I encountered my first problem! There appears to be no way to control the order in which those clicks happen. Sigh. I'm sure I'm missing something simple, but for the life of me, I can't figure out how to control the order in which those clicks are executed. Anybody out there know how this tool works?


Solution

  • Tosca is so powerful I have four approaches for you.

    1. the easiest answer: test steps get executed top to bottom, always. The trick: use the Module as many times (create as many test steps) as you need. Example (this shows just the first two steps, you would use a third to click on equals):

    calculator test steps

    1. Slightly improved answer: If that looks hard to read, you can hide all the empty test step values, by clicking hide do nothing in the ribbon, here:

    hide do nothing in ribbon

    Then the result would look like this:

    not showing empty teststepvalues

    1. the general way - you just go to the module and drag and drop the controls into the sequence you need them in. This will affect all test steps where this module is being used!

    reordered module

    the test steps automatically get updated to look like this:

    test step with reordered module

    this approach should obviously only be used if you need a general change (for all steps the module is used in). Be careful with it.

    1. The "expert" answer (I do not recommend that approach): you can allow reorder on a test step by rightclicking on the step and choosing the (second) context menu item:

    allow reorder

    Then you can drag and drop the test step values and the result would look like this:

    the awkward way

    I recommend the first approach for your first test case you try to put together.