Ranorex

How to generate Form Database using ranorex

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



Joined: 18 Jan 2007
Posts: 26

PostPosted: Mon May 14, 2007 12:03 pm    Post subject: How to generate Form Database using ranorex
I have a form database which contain all the detainls of form and control name.This form was devloped manually.
So now I want to devlop it automatically.
So do u have any idea to implement it using ranorex or any other technique?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Tue May 15, 2007 11:05 pm    Post subject:
I'm sorry, but we don't understand what you exactly mean.
Could you please explain it more detailed?

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
arishahsan



Joined: 18 Jan 2007
Posts: 26

PostPosted: Thu May 17, 2007 8:54 am    Post subject: I mean to say
We need Control name of each form object to perform automated testing using Ranorex. Since we dont have all the detals of each form object at a place we need to put ranorex spy on each object to find out its control name. This is really tedious job and I am looking for some other mechanism which can give me the details of each form object at a time.
So do u have any idea about it?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu May 17, 2007 10:05 pm    Post subject:
The following code reads all top-level forms and prints out the handle, location, text and control name of them:

Code: click into code to enlarge
Console.WriteLine("--------------------------------------");
Console.WriteLine("Read the list of the top-level windows");
Console.WriteLine("--------------------------------------");
Application.GetForms();
foreach (Form topform in Application.Forms)
{
    IntPtr handle = topform.Handle;
    Point  location = topform.Location;
    String text = topform.Text;
    String name = topform.Name;
    Console.WriteLine("Handle={0} Location={1} Text={2} ControlName={3}",
                                    handle, location, text, name);
}


Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
arishahsan



Joined: 18 Jan 2007
Posts: 26

PostPosted: Fri May 18, 2007 8:53 am    Post subject: We dont have command
We dont have any property like name in Form Class as you have mentioned in above code.

I mean to say following command does not exist.

topForm.Name???

Could you tell me in which build we can get such command?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Fri May 18, 2007 7:15 pm    Post subject:
Quote:
Could you tell me in which build we can get such command?

I used RanorexPro 1.1.0.
Some of the properties and functions are only supported in the professional version.

Please see the RanorexNet documentation for details.

Jenö
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