UI tests that encode Windows store apps

Source: Internet
Author: User

An experiment was conducted last week on a UI test that encodes a Windows Store app , with detailed instructions for the experiment steps:

1. Create a new Coded UI test project for Windows Store apps, select the visual c##→ store app → Coded UI test project (Windows).

2. Choose to edit the UI map using the Crosshair tool, and then the coded UI Test Builder toolbar appears.

3. Use the Crosshair tool in the coded UI Test Builder to select the app tile, right-click AutomationId, and select Copy value to Clipboard. Use the values in the Clipboard later to write an action to launch the app that you can test.

4. Run the application and add the application control with the Crosshair tool (shortcut: ctrl+shift+i).

5. Then similar to step 1.4, select all types of controls in the application.

6. Select the Generate Code button in the Coded UI Test Builder toolbar and choose Build to create code for changes to the UI control diagram.

7. Close the coded UI Test Builder toolbar, the VS2013 main interface appears, open uimap.uitest to find all the control information you added earlier.

8. Modify the code, for example, to add the control to the code.

9, click test → run → all tests, you can conduct test analysis.

10. After the test is complete, the test explorer will show that the test was passed and the run time is 9 seconds. At this point, the experiment is complete.

I've done a coded UI test for a non-Windows Store app before, and this time I tested the Windows Store app, but there are a lot of different things, like a UI test that encodes a non-Windows Store app that can be recorded, The process of testing can be visually observed when you run the test, and testing the Windows Store app without recording the process will initially make me feel like a start. Then by looking for information and ask classmates, I am gradually familiar with this process, but also have their own understanding. The reason why you chose to test this application (LOL Tank hero Introduction) is because it is a relatively simple application, does not contain information of the input process, is more suitable for just beginning to contact the software test we use to practice.

UI tests that encode Windows store apps

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.