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?
How to generate Form Database using ranorex
-
- Posts: 26
- Joined: Thu Jan 18, 2007 12:04 pm
-
- Posts: 26
- Joined: Thu Jan 18, 2007 12:04 pm
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?
So do u have any idea about it?
The following code reads all top-level forms and prints out the handle, location, text and control name of them:
Jenö
Ranorex Team
Code: Select all
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);
}
Ranorex Team
-
- Posts: 26
- Joined: Thu Jan 18, 2007 12:04 pm
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?
I mean to say following command does not exist.
topForm.Name???
Could you tell me in which build we can get such command?