optimize way to product testing

Ask general questions here.
Posts: 8
Joined: Thu Nov 09, 2006 5:56 am

optimize way to product testing

Post by nitin » Thu Nov 09, 2006 6:12 am


I want to write test suite to test my product.
which one more optimistic way
Can I write by providing action to test and it will follow
to test.
Like if i want to test menu of product so can i write
action in file or is this way I can write in ranorex?
generalized action like :
select menu,goto submenu1,click submenu1, check result.
how i convert using ranorex becouse some action may repeat
for other test case.

2] write hardcoded actions for each sub-part testing.
right now i can do this by ranorex


Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Thu Nov 09, 2006 10:35 pm

I think it's a good practice to write an application specific wrapper class (or some classes) around Ranorex and then use this wrapper class in the test suite.

Lets see a simple sample, we would like to test and automate an application like the calculator, calc.exe.

We implement a class with the name Calculator and support functions and properties for each functionality:

Code: Select all

   public class Calculator
        public SetStandardMode();
        public SetScientificMode();
        public EnterValue();
        public Plus();
        public Minus();
        public Clear();
        public BackSpace();
We use only the functions and properties of the Calculator class in our test suite, the test code is good readable.
In the Calculator functions we use Ranorex, if we call the function EnterValue(123) in the test suite, then we click the buttons 1, 2 and 3 with the Ranorex functions.

Jenö Herget
Ranorex Team