How to - Descriptive Programming in Ranorex

Ask general questions here.
Madhavan
Posts: 3
Joined: Thu Sep 09, 2010 7:02 am

How to - Descriptive Programming in Ranorex

Post by Madhavan » Wed Sep 22, 2010 3:32 pm

How to do Descriptive Programming in Ranorex?
Hi,
I am new to Ranorex.I need help in doing Descriptive Programming in Ranorex.

I need to launch a program - > do some operations e.g. click a button - > validate some result -> exit the application.

I do NOT want to use the record and play for this. Please help me in this regard.

Thank You.

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How to - Descriptive Programming in Ranorex

Post by Ciege » Wed Sep 22, 2010 4:07 pm

Q1, what is your definition of Descriptive Programming?
Q2, what language do you want to code in with Ranorex (C#, VB.NET, etc...)?
Q3, what IDE are you planning on using?

You can write your own code to run Ranorex quite well. That's how I and many others work with Ranorex. I do not do any record playback at all. I use Ranorex within Visual Studio using C#.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

Madhavan
Posts: 3
Joined: Thu Sep 09, 2010 7:02 am

Re: How to - Descriptive Programming in Ranorex

Post by Madhavan » Wed Sep 22, 2010 6:44 pm

Q1, what is your definition of Descriptive Programming?
I do not want to use the record/playback. I either want to add the objects to the repository and code OR just code using the object's properties. I want to launch an application (c:\programfiles\myapplication.exe) , do some operations e.g. click a button - > validate some result -> exit the application.
Q2, what language do you want to code in with Ranorex (C#, VB.NET, etc...)?
I want to code in VB.Net
Q3, what IDE are you planning on using?
I currently have Ranorex IDE installed. However let me know if it is better to access it from VS IDE.

Thank You,
Madhavan

User avatar
Ciege
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How to - Descriptive Programming in Ranorex

Post by Ciege » Wed Sep 22, 2010 6:52 pm

OK, you can do all of that with Ranorex in the Ranorex IDE just fine...

You will need to know how to use VB.NET to launch and close you AUT.
You can then see the forum and/or the Ranorex documentation for getting a reference to your object(s) using the xPath and how to interact (i.e. click) with them. Look at RanorexSpy for finding the xPaths of your objects.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: How to - Descriptive Programming in Ranorex

Post by artur_gadomski » Thu Sep 23, 2010 8:00 am

If you're new to Ranorex I would suggest starting with recordings. Record a few actions and look through the code generated by Ranorex. This should give you an idea of how you can code the same actions yourself later. After a while start a new project and just code everything.

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: How to - Descriptive Programming in Ranorex

Post by atom » Tue Oct 19, 2010 7:17 pm

Another question...
How long do you have to do it?

If the answer is "im under pressure":
- If record/playback works - use it

If the answer is "automation is a long term project for us":
- Build a repository of GUI items
- "Objectise" the AUT into re-usable code that does various operations
- Write test that simply chains together your re-usable functions

Cheers