All Products
Search
Document Center

Mobile Testing:Quick start

Last Updated:May 26, 2022

Prerequisites

  • An Alibaba Cloud account is created and has passed real-name verification. The account is used to log on to the Mobile Testing console.

  • The Mobile Testing service is activated and a workspace is created.

  • A resource plan for the performance analysis service is purchased. For more information, see Pricing.

Compatibility or functional testing

The following figure shows the compatibility or functional testing workflow.

Figure 1

Manage use cases

A use case set is the smallest executable unit in Mobile Testing. For more information about how use cases are organized, see Hierarchy description.

Use case sets must be preset for functional testing. If you want to set Logon Method to Logon by Use Case Set for compatibility testing, you must create a use case set in advance. If you want to set Logon Method to Logon Not Required, no use case sets are required.

You can perform the following operations:

  1. Create a use case library version. You can create a use case library version that corresponds to the current iteration of an app or use the default version. For more information, see Create a use case library version.

  2. Create a module. You can create a module to use in combination with business logics of an app to further manage use case sets in a centralized manner. You can also use the default module. For example, Homepage, My, and Orders are commonly used modules. For more information, see Create or import a module.

  3. Create a use case set. A use case set is the smallest executable unit. For more information, see Create or import a use case set.

  4. Create a script. For more information, see Create or import a script.

    Note

    You can create scripts by recording or uploading scripts. If you want to create a script by means of recording, you must purchase a resource plan for remote device debugging. For more information, see Record a script.

  5. Add parameters. Parameters can be used in conjunction with scripts. For more information, see Add or import parameters.

  6. Create a custom step. You can create a custom step by writing a script based on the Appium engine and Python language and adding the script to a recorded script to implement unconventional operations.

  7. Edit the use case set by adding use cases to it. For more information, see Create a use case.

Implement compatibility or functional testing

You can perform the following operations:

  1. Purchase a resource plan for basic testing. For more information, see Pricing.

  2. Upload the Android or iOS app that you want to test. For more information, see Upload an app.

  3. (Optional) Create a use case set and a parameter group.

    Note

    • Use case sets must be preset for functional testing.

    • If you want to set Logon Method to Logon by Use Case Set for compatibility testing, you must create a use case set in advance. If you want to set Logon Method to Logon Not Required, no use case sets are required.

  4. Submit a test.

    • For more information about how to submit an Android compatibility test, see Submit a test.

    • For more information about how to submit an Android functional test, see Submit a test.

    • For more information about how to submit an iOS compatibility test, see Submit a test.

    • For more information about how to submit an iOS functional test, see Submit a test.

  5. After the compatibility or functional test is complete, view the test overview or test report.

Performance testing

The following figure shows the performance testing workflow. You can perform the following operations:Performance testing

  1. Purchase a resource plan for remote device debugging. For more information, see Pricing.

    Note

    You must apply for a remote device to implement performance testing.

  2. Upload the Android or iOS app that you want to test. For more information, see Upload an app.

  3. Create a directory and a test case to save relevant data after a performance test is complete.

    • For more information about how to create a directory and a test case for an Android performance test, see Manage test cases.

    • For more information about how to create a directory and a test case for an iOS performance test, see Manage test cases.

  4. Submit a performance test.

    • For more information about how to submit an Android performance test, see Submit a test.

    • For more information about how to submit an iOS performance test, see Submit a test.

  5. On the Remote Device Debugging page that appears after you submit the performance test, apply for a remote device, implement performance testing, and then save the test data.

    • For more information about how to apply for a remote device for Android performance testing, see Remote debugging.

    • For more information about how to apply for a remote device for iOS performance testing, see Remote debugging

  6. After the performance test is complete, view the test report.

    • For more information about how to view the report of an Android performance test, see View a test report.

    • For more information about how to view the report of an iOS performance test, see View a test report.

Remote debugging

The following figure shows the workflow of applying for a device for remote debugging.Remote debugging

  1. Purchase a resource plan for remote device debugging. For more information, see Pricing.

  2. Apply for a remote device, upload and install an app, and then implement remote debugging on the device.

    • For more information about how to implement remote debugging on an Android device, see Remote debugging.

    • For more information about how to implement remote debugging on an iOS device, see Remote debugging.

Expert testing

The following figure shows the workflow of applying for the expert testing service. For more information, see Apply for expert testing.Expert testing

Notice

When you want to test WeChat mini programs, you must provide WeChat test accounts. For more information, see FAQ.

Technical support

Mobile Testing technical support is provided by way of the official DingTalk group or the ticket system. For more information, see Technical support.