| View previous topic :: View next topic |
| Author |
Message |
arishahsan
Joined: 18 Jan 2007 Posts: 26
|
Posted: 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 |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: 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 |
|
 |
arishahsan
Joined: 18 Jan 2007 Posts: 26
|
Posted: 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 |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: 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 |
|
 |
arishahsan
Joined: 18 Jan 2007 Posts: 26
|
Posted: 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 |
|
 |
admin Site Admin
Joined: 05 Jul 2006 Posts: 351
|
Posted: 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 |
|
 |
|