Sign in to follow this  
Followers 0
boxcarbaker086

Using AutoIT to verify text within Windows application is correct

8 posts in this topic

I am looking for automation tools that will allow me the capability to automate the test testing effort of a windows application and I stumbled upon AutoIT. It looks like AutoIT can simulate mouse clicks, etc. to simulate and execute various features within a windows application. Do methods also exist to verify text within a windows application is correct? If it were a web browser based project, Selenium would work excellent to do this. I basically need to check to ensure that the text within the application is reporting correctly. Any ideas and will AutoIT be able to do this?

Share this post


Link to post
Share on other sites



Hi. Welcome to the Forum. See ControlGetText. This will do what you're looking for. There's examples in the Help file for just about all the native AutoIt functions, tutorials in the Wiki, and on YouTube too.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

@somdcomputerguy,

Thanks for the help. So the ControlGetText function will basically search over the Windows application until it finds the text you specify to search for? Is that the general idea?

Share this post


Link to post
Share on other sites

Hi, boxcarbaker086. It really depends on the type of window that is up whether you'll be able to get the text. Out of curiosity, what is the application you're trying to automate testing on? Are you looking to grab text just to confirm the window is there? If so, there may be easier ways to confirm the window is present so you can begin your test procedures.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Also, is there anyway I can seach for text that has links? For example, if my program displays "Enabled" and "Disabled" as valid states for a given feature and say the state is currently set to "Enabled", then the "Disabled" option will still appear but will have a link on it to signify that it can be toggled to that state. I am basically trying to find an automation tool that will let me test a VMware vCenter plugin that is COM based. Just checking the text in my case may not be enough. Using my example above, "Enabled" and "Disabled" will display no matter what the current state is... so I need a way to actually verify that when I toggle the state, that the UI updates appropriately.

Share this post


Link to post
Share on other sites

It really depends upon the plugin. Last I knew there were two ways to create a plugin for vCenter: script-based and the C# API. How the plugin is created will affect what information you can pull from it, or how you can manipulate it. Can you let us know which plugin you're working with, and perhaps a screen shot of the window with your "enabled/disabled" buttons?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

If you mean "script-based" with respect to the plugin being defined by XML scripts, I would say it's script-based then as no C# code was written.

Share this post


Link to post
Share on other sites

Basically, I've got a web service that I was originally able to test using Selenium. Now, it is being displayed inside a vSphere client tab (plugin) and I need to test all the functionality of the application as I was able to do with Selenium to ensure all functionality continues to work inside the plugin.

Share this post


Link to post
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
Sign in to follow this  
Followers 0