Skip to content

liushuqi-2022/TREADROID-repo

Repository files navigation

Prerequisites

Getting Started

  1. Install subject apps on an emulator
  2. Start the emulator; Start Appium-desktop
  3. Run w2v_service.py first to activate the background web service for similarity query (modify the path in source code pointing to GoogleNews-vectors-negative300.bin)
  4. Run Explorerm.py with arguments:
python3 Explorerm.py ${TRANSFER_ID}

TRANSFER_ID is the transfer id, e.g.,

python3 Explorerm.py a21-a22-b21

It will start transferring the test case of a21-Minimal to a22-Clear List for the b21-Add task function.

APPIUM_PORT is the port used by Appium-Desktop (4723 by default), EMULATOR is the name of the emulator.

  1. The source test cases are under test-repo/[CATEGORY]/[FUNCTIONALITY]/base/[APP_ID].json, e.g., test-repo/a2/b21/base/a21.json. The generated test cases for the target app is under generated/[APP_FROM]-/[APP_TO]-[FUNCTIONALITY].json, e.g., test-repo/a2/b21/generated/a21-a22-b21.json

  2. Evaluator.py is used to evaluate the test cases generated in terms of precision, recall, etc. Let's say we would like to transfer the test a2/b21/base/a21.json to the app a22. The GUI events in a2/b21/base/a21.json (source events) will be loaded with base_from option. The correct GUI events to test the same feature on a22, i.e., a2/b21/base/a22.json (target events), will be loaded with base_to option.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published