Skip to main content

aitest

Project description

aitest

The aitest Command Line Interface is a unified tool to manage your aitest services.

Installing

To install this CLI tool you can run the below command for Linux

pip3 install aitest-cli

To install this CLI tool you can run the below command for windows

pip install aitest-cli

How to get configuration information

1) To get User Identifier follow below steps:

    visit aitest -> settings -> copy User Identifier.

2) To get the Client ID and Client secret ID  you need to send a request via email to this email id aitest-support@appliedaiconsulting.com . You will receive the Client ID and Client secret ID via email.

How to use

To see help text, you can run:

aitest --help
aitest <command> --help
aitest <command> <subcommand> --help

ex:
1) If you want help to understand aitest CLI, you can run the following command:
Input :

    aitest --help

output:

    Usage: aitest [OPTIONS] COMMAND [ARGS]...

    The  aitest  Command  Line  Interface is a unified tool to manage your aitest  services.

    To see help text, you can run:

   aitest --help

   aitest <command> --help

   aitest <command> <subcommand> --help

   Options:
       --help  Show this message and exit.

   Commands:
       configure  If this command is run with no arguments, you will be prompted...
       run        If this command is run with testrun id as an argument, aitest...
       status     If this command is run with testrun id as an argument, aitest...

2) If you want to know how configure command works , you can run the following command:
    Input:

        aitest configure --help

    Output:

    aitest configure [OPTIONS]

    If this command is run with no arguments, you will be prompted for configuration values such as your  aitest  User ID, Client ID and Client Secret ID.If your configure file
    does not  exist (the default location is ~/.aitest/configure), the aitest
    CLI will create it for you.To keep an existing value, hit enter when
    prompted for the value.


    To save the configurations , you can run below command:

    aitest configure

   Options:
      --help  Show this message and exit.

3) How to run aitest configure command?
    Input:

            aitest configure 

    Output:

            Enter aiTest User Identifier : 
            Enter Client ID :
            Enter Client Secret ID :

Note : To access the aitest services using CLI commands you need to run aitest configure command first.

4) How to run aitest run command?:
    Input:

        aitest run -id 69cd8eb8-9700-11ed-bdc9-3e71e7127aff -p test-password -w 5       

    Output:

    Test created successfully
    Test Name : Test 1
    Testrun ID : 47782fb0-9711-11ed-809d-62cd909dddc7

    Testrun is in progress, result will be displayed once it get completed.

    test status : completed

    +--------------+-----------------+--------------------------------------+--------+------------+
    | browser_name | browser_version |          test run result id          | status | time taken |
    +--------------+-----------------+--------------------------------------+--------+------------+
    |   firefox    |       104       | 47c53f08-9711-11ed-b277-c6d8e5da78fe |  fail  |   0.001    |
    |   firefox    |       104       | 47d350e8-9711-11ed-b277-c6d8e5da78fe |  fail  |   0.001    |
    |   firefox    |       104       | 47deb2b2-9711-11ed-b277-c6d8e5da78fe |  fail  |   0.001    |
    |   firefox    |       104       | 47eca5fc-9711-11ed-b277-c6d8e5da78fe |  fail  |   0.001    |
    |   firefox    |       104       | 47fa16ec-9711-11ed-b277-c6d8e5da78fe |  fail  |   0.002    |
    +--------------+-----------------+--------------------------------------+--------+------------+

Note : Enter git password only if you used git url for creating the test otherwise no need to enter git password

5) How to run aitest status command?
    Input :

        aitest status -id ae96545a-79da-11ed-8d95-762fbb2b81b4

    Output:

        test status : completed

        chrome-104    test run result id: 3f7fd9d2-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 248.08 secs
        chrome-104    test run result id: 3f8e9d82-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 249.23 secs
        chrome-104    test run result id: 875bcfc2-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 244.416 secs
        chrome-104    test run result id: 8769323e-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 244.636 secs
        chrome-104    test run result id: afa26866-79da-11ed-899a-4e9b87be310a   status: pass   time taken: 245.386 secs
        chrome-104    test run result id: afbb8f1c-79da-11ed-899a-4e9b87be310a   status: pass   time taken: 247.679 secs
        chrome-104    test run result id: cf309d82-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 243.275 secs
        chrome-104    test run result id: cf3d5bb2-79db-11ed-899a-4e9b87be310a   status: pass   time taken: 237.987 secs
        chrome-104    test run result id: f7ad10ca-79da-11ed-899a-4e9b87be310a   status: pass   time taken: 252.762 secs
        chrome-104    test run result id: f7bdb38a-79da-11ed-899a-4e9b87be310a   status: pass   time taken: 253.399 secs

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

aitest-cli-0.2.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

aitest_cli-0.2.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file aitest-cli-0.2.3.tar.gz.

File metadata

  • Download URL: aitest-cli-0.2.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for aitest-cli-0.2.3.tar.gz
Algorithm Hash digest
SHA256 184c77c1297a7b57f06c0b676c090d2cf9cfb79b15bc5849aa27983b6eeb9ce3
MD5 4b4b83722be6d73e71c7df4174580336
BLAKE2b-256 4ab0785a4825d99d027fed3d23b14da31e34d67638c3ec876a84edfc508d2084

See more details on using hashes here.

File details

Details for the file aitest_cli-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: aitest_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for aitest_cli-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75d374ae0eee1ab9a5fd1a5677f12891460a093f23352f53ab17e9555f4311be
MD5 5ef72d59051767b396186844ca35b93d
BLAKE2b-256 34dfd5253a48aa4c87adbf21ea95ddde1878c3390991b6b05d9602276da93703

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