VSTS-CUIT: uitestingutilities

Source: Internet
Author: User

Although cuit provides many methods and attributes for controls, some common methods are missing for some controls or for further usability. For example, in winlistitem:

 

Both app and apptools are listitem, and coded UI test builder can also recognize them. However, we cannot directly obtain the size, type, and datemodified content of APP/apptools.

 

To this end, Ms experts provide another DLL, which is published on their own blog.

Http://blogs.msdn.com/ B /gautamg/archive/2010/02/19/useful-set-of-utility-functions-for-coded-ui-test.aspx

 

The classes in the DLL are all in the Microsoft. visualstudio. testtoos. uitesting namespace, And the namespace is referenced by the coded UI test file by default, so we do not need to introduce other namespace.

 

CodeExample: obtain information about the app listitem.

Winlistitem li = new winlistitem (AUT); <br/> Li. searchproperties. add ("name", "app"); <br/> string [] liinfo = winextensions. getcolumnvalues (LI); <br/> foreach (string info in liinfo) <br/>{< br/> MessageBox. show (Info); <br/>}

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.