Jump to content

Automation of the already exixtting GUI


Recommended Posts

How AutoIt3 idtentifies the objects in the GUI

Example Lets say I have an application consisting of text boxes/buttons/checkboxes/radiobuttons

How to automate the application so that I set/get thevalues from all the controls present in the application?

Is there any way that autoIT identifies the controls other that mouse movements.

Link to comment
Share on other sites

Use the AutoIt Window Info Tool.

Then based on the information you get about the window controls, like classname and id, use the Control_____ functions to deal with them.

Check the help file on the Windows functions part.

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Link to comment
Share on other sites

Use the AutoIt Window Info Tool.

Then based on the information you get about the window controls, like classname and id, use the Control_____ functions to deal with them.

Check the help file on the Windows functions part.

Thanks for the reply,

I was trying to locate for the info what you are mentioning but not able to suceed.

could you please elobrate more on this by giving an sample example for the existing UI

Link to comment
Share on other sites

Look at the helpfile for controlsend.

Run notepad and Au3Info. Move the mouse above the input-control. See that Au3Info reports

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 0 W: 641 H: 204

Control ID: 15

ClassNameNN: Edit1

Text:

Style: 0x50200104

ExStyle: 0x00000200

Now run the demo from controlsend > got it, it's Edit1 again. :)

Link to comment
Share on other sites

Look at the helpfile for controlsend.

Run notepad and Au3Info. Move the mouse above the input-control. See that Au3Info reports

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 0 W: 641 H: 204

Control ID: 15

ClassNameNN: Edit1

Text:

Style: 0x50200104

ExStyle: 0x00000200

Now run the demo from controlsend > got it, it's Edit1 again. :)

How to set the test in the text box whose

Conrol Id : 5946712

ClassNameNN : Edit2

This text box is present under a group whose details are

Conrol Id : 12345

ClassNameNN : XYZ _Group

Text : Facility

All the above controls are present in the window whose details are

Title :

ClassNameNN : SWT_Window()

Link to comment
Share on other sites

How to set the test in the text box whose

Conrol Id : 5946712

ClassNameNN : Edit2

This text box is present under a group whose details are

Conrol Id : 12345

ClassNameNN : XYZ _Group

Text : Facility

All the above controls are present in the window whose details are

Title :

ClassNameNN : SWT_Window()

1. How to execute Multiple scripts using one file

2. How to Log the results of the scripts, I mean Pass/Fail information

3. How to verify the Live Video is playing

4. How to verify the Playback video is playing

Link to comment
Share on other sites

  • Moderators

1. How to execute Multiple scripts using one file

2. How to Log the results of the scripts, I mean Pass/Fail information

3. How to verify the Live Video is playing

4. How to verify the Playback video is playing

Are those questions or are you showing us a plan you have? Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Those are questions , I am expecting some answers thanks

I'm sure you worded that wrong... you shouldn't expect anything that you aren't paying for.

I'd try to help however... but I don't understand your "questions", maybe you should give an example along with them (especially something you've tried to code).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

1. How to execute Multiple scripts using one file

2. How to Log the results of the scripts, I mean Pass/Fail information

3. How to verify the Live Video is playing

4. How to verify the Playback video is playing

following the thread, where did you pull out the video stuff all of a sudden? That's something completely different from what you were asking....

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

I'm sure you worded that wrong... you shouldn't expect anything that you aren't paying for.

I'd try to help however... but I don't understand your "questions", maybe you should give an example along with them (especially something you've tried to code).

1. How to Log the results of the scripts, I mean Pass/Fail information

Here I want to create a Output Log file which will explain the sucessful execution of the statements

Ex: Let say I am expecting some string "xyz" from a Text box. I will be validating the string and I should able to log the result as Pass/ Fail.

2. Is there any way to test Live Video is playing

3. Is there any way to test Playback video is playing

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...