Skip to main content

Test2VA

Project description

Installation

pip install test2va Requires Python 3.10 or later: https://www.python.org/downloads/

External Dependencies

Appium

Appium is required to act as a bridge between the tool and an Android device/emulator.

Appium Server GUI is the recommended tool for this.

Potential issues installing Appium Server (https://github.com/appium/appium-desktop):

macOS "If you're using the desktop app on macOS, when you run it you may be greeted with some error about the app not being able to be opened, or not verified by Apple, or something similar. The easiest way to get around this is to run xattr -cr on the file you downloaded. So let's say you downloaded Appium-Server-GUI-mac-<version>.dmg and copy Appium Server GUI.app in /Applications inside the disk image. Then you would run xattr -cr "/Applications/Appium Server GUI.app" before opening it. The same goes for the zip version (or the .app itself)."

Windows "Some Windows 10 Users experience a PathTooLongException when installing the EXE. The workaround for this is to update the setting on Windows to enable long paths."

After Appium Server GUI is installed, make sure it is running before starting the Test2VA tool.

The "simple" Appium server preset should be used. The default host and port should be localhost and 4723 respectively.

Android Emulator

The minimum SDK version required for running the example tests is 21 (Android 5.0 Lollipop).

If a physical device is not available, an emulator can be used. The Android Emulator can be installed through Android Studio.

To create a new emulator, open Android Studio and navigate to Tools > Device Manager. Click Create Virtual Device (or the "+" button) and follow the instructions to create a new emulator. Testing emulator configuration will be listed at the bottom of this description.

Make sure the device is running before starting the Test2VA tool. This can be done by returning to Device Manager and starting the emulator.

SRCML

SRCML is required to convert the test script from Java to XML. The SRCML tool can be downloaded from here.

Make sure SRCML is added to PATH.

Usage

Run the following command in the terminal:

test2va

The tool GUI interface will start immediately.

Example Dropdown

The example dropdown contains a list of example tests that can be run. These tests are pre-configured and can be run without needing to configure an APK file, test script, and activity. The dropdown is marked with the text: "Select an example".

App APK Path

The path to the APK file that will be used for testing. This is a full local path. This will be automatically filled in when selecting a testing example.

Test Script Path

The path to the JAVA test source code file containing the test script. This is a full local path. This will be automatically filled in when selecting a testing example.

Appium Server URL

This is the local URL to your Appium server. If Appium Server GUI was used with the default "simple" preset, this should be http://localhost:4723/wd/hub.

Device UDID

The UDID of the device/emulator that will be used for testing. This can be found by running the command adb devices in the terminal. Typically, the UDID will be in the format emulator-<port> for an emulator.

App Activity

The activity that will be launched when the APK is installed. This will be automatically filled in when selecting a testing example.

Auto Grant Permissions

If this is checked, the tool will automatically grant all permissions to the app when it is installed. This is useful for testing apps that require permissions to be granted before they can be used. This should remain in the default state for most apps.

No Reset

If this is checked, the tool will not reset the app state between tests. This is useful for testing apps that require a specific state to be set up before running tests. This should remain in the default state for most apps.

Full Reset

If this is checked, the tool will perform a full reset of the app between tests. This is useful for testing apps that require a clean state to be set up before running tests. This should remain in the default state for most apps.

Exit After Parse

This is a debug option that will cause the tool to exit after parsing the test script. This is useful for checking the parsed test script before running it. This should remain unchecked for normal use.

Run Tool

When everything is configured, click the start button to run the tool. Watch the output frame for information during testing as well as where the results will be saved.

Test2VA Team Testing Device Configuration

Physical Device

Pixel 5, running Android 11 with 64-Bit Octa-CoreProcessor, 8 GB of RAM, and 128 GB of internal storage.

Emulator

Resizable API 33, Running Android 13.0 with a 64-Bit Quad-Core Processor, 1.5 GB RAM.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

test2va-1.1.8.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

test2va-1.1.8-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file test2va-1.1.8.tar.gz.

File metadata

  • Download URL: test2va-1.1.8.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for test2va-1.1.8.tar.gz
Algorithm Hash digest
SHA256 0887e712e9a3515e3c507196b646b901617bc2756c649c081ad1f8cad9c8741f
MD5 9b983b394203325a7729e29f8de24bfd
BLAKE2b-256 b3aad155b64fac2ec60b572a6f55fcf024cf20dcf09812e76e62666a59aaa5d0

See more details on using hashes here.

File details

Details for the file test2va-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: test2va-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for test2va-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed45218f0391de05238da67fc24f8d4e8778a1e2d603a43885c4115ca964983
MD5 a2175601a11aafe46ce5d58933009496
BLAKE2b-256 c4969a8bb975a96065effea48dd3e7db6436e4d45ceb68d41072461108a3e92f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page