Skip to content

testit-tms/adapters-python

Repository files navigation

Test IT Python Integrations

The repository contains new versions of adapters for python test frameworks.

Pytest: Release Status Downloads

Behave: Release Status Downloads

Nose: Release Status Downloads

Robotframework: Release Status Downloads

Commons: Release Status Downloads

Compatibility

Test IT Behave Nose Pytest RobotFramework
3.5 2.0 2.0 2.0 2.0
4.0 2.1 2.1 2.1 2.1
4.5 2.5 2.5 2.5 2.5
4.6 2.8 2.8 2.8 2.8
5.0 3.2 3.2 3.2 3.2
5.2 3.3 3.3 3.3 3.3
5.3 3.6.1.post530 3.6.1.post530 3.6.1.post530 3.6.1.post530
5.4 3.6.6.post540 3.6.6.post540 3.6.6.post540 3.6.6.post540
5.5 3.10.1.post550 3.10.1.post550 3.10.1.post550 3.10.1.post550
5.6 3.11.1.post560 3.11.1.post560 3.11.1.post560 3.11.1.post560
Cloud 3.12.0 + 3.12.0 + 3.12.0 + 3.12.0 +
  1. For current versions, see the releases tab.
  2. Starting with 5.2, we have added a TMS postscript, which means that the utility is compatible with a specific enterprise version.
  3. If you are in doubt about which version to use, check with the support staff. support@yoonion.ru

What's new in 4.0.0?

  • New logic with a fix for test results loading

  • Added sync-storage subprocess usage for worker synchronization on port 49152 by defailt.

  • importRealtime=false is a default mode (previously true)

  • limitations:

  • The current 4.0.0 version is not compatible with adapterMode=2 when using parallelization (e.g., pytest --testit -n 4). Please use adapterMode=1.

How to run 4.0+ locally?

You can change nothing, it's full compatible with previous versions of adapters for local run on all OS.

How to run 4.0+ with CI/CD?

For CI/CD pipelines, we recommend starting the sync-storage instance before the adapter and waiting for its completion within the same job.

You can see how we implement this here.

  • to get the latest version of sync-storage, please use our script

  • To download a specific version of sync-storage, use our script and pass the desired version number as the first parameter. Sync-storage will be downloaded as .caches/syncstorage-linux-amd64

  1. Create an empty test run using testit-cli or use an existing one, and save the testRunId.
  2. Start sync-storage with the correct parameters as a background process (alternatives to nohup can be used). Stream the log output to the service.log file:
nohup .caches/syncstorage-linux-amd64 --testRunId ${{ env.TMS_TEST_RUN_ID }} --port 49152 \
    --baseURL ${{ env.TMS_URL }} --privateToken ${{ env.TMS_PRIVATE_TOKEN }}  > service.log 2>&1 & 
  1. Start the adapter using adapterMode=1 or adapterMode=0 for the selected testRunId.
  2. Wait for sync-storage to complete background jobs by calling:
curl -v http://127.0.0.1:49152/wait-completion?testRunId=${{ env.TMS_TEST_RUN_ID }} || true
  1. You can read the sync-storage logs from the service.log file.

General

Supported test frameworks:

  1. Pytest
  2. Behave
  3. RobotFramework
  4. Nose

🚀 Warning

Since 3.0.0 version:

  • If the externalId annotation is not specified, then its contents will be a hash of a fully qualified method name.
Coverage Status

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors