Coded UI test for WIN8 applications

Source: Internet
Author: User

Experiment contents and steps

1. Test Plan

Test project name: Calendar ranging Calculator

Version Number: 1.0

Test Project Description: The calendar Gap Calculator is an application that can calculate the time difference. It is very helpful to use a countdown or a time plan for an enterprise project. function: Calculate date distance, countdown

Test purpose: To detect whether the application is taking into account the user's error input, whether the calculated result is correct, and the usability of the survey.

Test time: 2 hours

Test Person: Pambo

Test environment: win8.1, Visual studio2013

The test arrangement: first divides the equivalence class, examines its input valid equivalence class and the invalid equivalence class the output result. The boundary value is then considered, and the result is when you enter a number that is larger than the number allowed to return.

Test content: Enter valid input and invalid input on the year, month, and date. For example: Enter letters, kanji, special symbols, or correct numbers. Enter a date that does not exist, such as 32 days, February 29, 2001. Examine the results of the output

Use visual studio2013 to perform UI testing on the app.

Test evaluation criteria: The results of Visual Studio test and output determination, if correct, the software does not have problems.

1.1 Project Overall Plan

Determining test methods, conducting input tests, conducting UI tests, and judging test results

1.2 Detailed test Plan

Delimit equivalence classes, determine boundary values, enter test cases, record output, perform UI tests

Experimental analysis

1. Test Cases and results

Test project name: Calendar ranging Calculator

Version Number: 1.0

Test environment: win8.1, Visual studio2013

Written by: Pambo

Valid equivalence classes:

Number

Valid classes

Invalid class

Years

1

1-99999

4

Less than 1, greater than 99999, letters, Chinese characters, special characters

Month

2

1-12

5

Less than 1, greater than 12, letters, Chinese characters, special characters

Day

3

1-31 (1, 3, 5, 7, 8, 10, December)

1-30 (4, 6, 9, November)

1-28 (Common year February)

1-29 (Leap year February)

6

Less than 1, greater than 31 (1, 3, 5, 7, 8, 10, December)

Less than 1, greater than 30 (4, 6, 9, November)

Less than 1, greater than 28 (common year February)

Less than 1, greater than 29 (leap year February)

Letters, Chinese characters, special characters

Test Case:

Use Case number

Input data

overriding equivalence classes

Expected output results

1

February 29, 2000

March 1, 2000

1, 2, 3

Date Gap: 1

2

February 29, 2001

April 1, 2001

1, 2, 3, 6

Please enter a meaningful date

3

April 31, 2014

June 5, 2014

1, 2, 3, 6

Please enter a meaningful date

4

January 15, 2015

July 15, 2015

1, 2, 3

Date Gap: 181

5

December 1, 2015

March 1, 2015

1, 2, 3, 5

Please enter a meaningful date

6

January 1, 2001

100,000 year January 1

1, 2, 3, 4

Please enter a meaningful date

7

Year a January 1

2002 a month 1st

1, 2, 4, 5, 3

Please enter a date in the correct format

8

! Years! Month 1st

! Years! Month 1st

3, 4, 5

Please enter a date in the correct format

9

December 1, 2014

December 1, 2015

4, 2, 3, 1

Please enter a date in the correct format

The following UI tests are performed:
1.1 Creating a UI test project

1.2 Choosing how to Generate code

1.3 Select App

1.4 In the running app, use the Crosshair tool to select the button control and the TextBox control. After you have added each control, select the Add control to UI Control Map button in the Coded UI Test Builder toolbar.

1.5 In the Coded UI Test Builder toolbar, select the Generate Code button, and then choose Build to create code for changes to the UI control diagram.

1.6 Use the Crosshair tool to select the text box control, and then select the "Text" property. Add an assertion. It will be used in the test to verify that the value is correct.

1.7 Add and generate code for assertions.

1.8 In Solution Explorer, open the UIMap.Designer.cs file to view the code that was added for the assertion method and control.

1.9 In Solution Explorer, open the CodedUITest1.cs or Codeduitest1.vb file. You can now add code to the CodedUTTestMethod1 method for the actions required to run tests with controls that have been added to UIMap

1.10 Build your tests, and then run the test using Test Explorer.

Coded UI test for WIN8 applications

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.