Ranorex

optimize way to product testing

 
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
nitin



Joined: 09 Nov 2006
Posts: 5

PostPosted: Thu Nov 09, 2006 7:12 am    Post subject: optimize way to product testing
Hi,

I want to write test suite to test my product.
which one more optimistic way
1]
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

thanx,
Nitin.
Back to top
View user's profile Send private message Yahoo Messenger
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Nov 09, 2006 11:35 pm    Post subject:
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: click into code to enlarge
   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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> General Questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum