How to - Descriptive Programming in Ranorex : General Questions

How to - Descriptive Programming in Ranorex

Ask general questions here.

How to - Descriptive Programming in Ranorex

Postby Madhavan » Wed Sep 22, 2010 4: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.
Madhavan
 
Posts: 3
Joined: Thu Sep 09, 2010 8:02 am

Re: How to - Descriptive Programming in Ranorex

Postby Ciege » Wed Sep 22, 2010 5: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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: How to - Descriptive Programming in Ranorex

Postby Madhavan » Wed Sep 22, 2010 7: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
Madhavan
 
Posts: 3
Joined: Thu Sep 09, 2010 8:02 am

Re: How to - Descriptive Programming in Ranorex

Postby Ciege » Wed Sep 22, 2010 7: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
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: How to - Descriptive Programming in Ranorex

Postby artur_gadomski » Thu Sep 23, 2010 9: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.
User avatar
artur_gadomski
 
Posts: 125
Joined: Mon Jul 19, 2010 7:55 am
Location: Copenhagen, Denmark

Re: How to - Descriptive Programming in Ranorex

Postby atom » Tue Oct 19, 2010 8: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
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests