Software testing the fifth week of the "Win8 app app black box test".

Source: Internet
Author: User

First, the test plan

Test Project name: This is guessing riddles game

Version number: 1.0.0

Test Project Introduction: This is a guessing riddles game, is the user based on the screen of the riddles and then write the answer submitted to see if the correct.

Test Purpose: Test whether the WINDOWS8 application is stable and secure, test the application for bugs, test the UI interface for stability, and test whether the program is functionally consistent with expectations.

Test tool: Visual studio2013 Ultimate

1. Create a Coded UI test project.

2. Adding WIN8 applications and control components to a test project using the coded UI Test Builder

3. Add the UI control component of the app you want to test into the Test builder

I added a few buttons on the main interface and the Answeredit input box in the game.

4. Add the control components and assertions to be tested in the CODEDUITESTMETHOD1 function in the test project

public void CodedUITestMethod1 ()
        {
             Xamlwindow.launch ("9451.10801268149c1_zwpcw86kbfrve! App ");
            Gesture.tap (this. Uimap.ui This is guessing riddles game window.ui start guessing button);
            Gesture.tap (this. Uimap.ui This is guessing riddles game window.ui OK button);
            Gesture.tap (this. Uimap.ui This is guessing riddles game Window.ui game description button);
            Gesture.tap (this. Uimap.ui This is guessing riddles game window.ui about riddles button);

            this. Uimap.assertmethod1 ();
           //To generate code for this test, select Generate code for coded UI tests from the shortcut menu. Then select one of the menu items.
       }

5. Assertion that the added judgment answer is correct

public void AssertMethod1 ()
{
#region Variable Declarations
Xamledit Uiansweredit = this. UI this is guessing riddles game window.uiansweredit;
#endregion

Confirm that the "answer" text box is equal to the "text" property of "exhaustive"
Assert.AreEqual (this. Assertmethod1expectedvalues.uiansweredittext, Uiansweredit.text);
}

6. Run the test and view the results

Second, the test conclusion

This is my classmate to do a WIN8 application to do the black box test, the application of the interface is relatively simple, in addition, because this application is a guessing riddles application, his topic is

Random out, so I set the assertion to determine whether the correct answer will always run an error, I added the assertion when the Answeredit set a text value,

The results of running errors are obtained by comparing them with one test. In addition, I have also found some other errors in the application, which is the original interface of the application.

This app has no riddles at the beginning, you can press the OK button and check the Answer key when the Start button is pressed, but in the program's expectation it should be

To be hidden, these keys must be triggered after the game is started.

Software testing the fifth week of the "Win8 app app black box test".

Related Article

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.