niobe/test/xts/acts/demo/hjsunit
houpengfei 396aa09915 init 2021-09-22 21:52:48 +08:00
..
Assertion init 2021-09-22 21:52:48 +08:00
Async init 2021-09-22 21:52:48 +08:00
DataDriver init 2021-09-22 21:52:48 +08:00
README.md init 2021-09-22 21:52:48 +08:00
README_zh.md init 2021-09-22 21:52:48 +08:00

README.md

App Samples

Introduction

We provide a series of app samples to help you quickly get familiar with the test capabilities and how to use of the HJSUnit. Each app sample is an independent project in DevEco Studio. You can import sample code from a project to a customized project to learn how to use APIs by browsing code, building the project, and installing and running the app.

Usage

  1. Development tool: Devco Studio 2.2.0.200 or later
  2. Procedure: Create a blank JS template project in Devco Studio, import the sample code in the ohosTest directory of the sample project to the ohosTest directory of the user-defined project, and compile, build, run, and debug the project.
  3. After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.

Limitations

Before installing and running the sample, check the deviceType field in the config.json file to obtain the device types supported by the sample. You can modify this field to enable the sample to run on your target device. The **config.json** file is generally stored in the **entry/src/main** directory, which may be different depending on the samples.