{"id":28391819,"url":"https://github.com/morganstanley/testplan","last_synced_at":"2026-04-09T04:08:22.425Z","repository":{"id":36961844,"uuid":"125212755","full_name":"morganstanley/testplan","owner":"morganstanley","description":"Testplan, a multi-testing framework, because unit tests can only go so far..","archived":false,"fork":false,"pushed_at":"2026-03-05T12:14:37.000Z","size":9669,"stargazers_count":208,"open_issues_count":14,"forks_count":105,"subscribers_count":25,"default_branch":"main","last_synced_at":"2026-03-05T16:14:44.539Z","etag":null,"topics":["blackbox-testing","integration-testing","multitest","testing","testing-framework","testplan"],"latest_commit_sha":null,"homepage":"http://testplan.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morganstanley.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-14T12:58:19.000Z","updated_at":"2026-03-05T12:11:14.000Z","dependencies_parsed_at":"2026-01-09T09:01:29.151Z","dependency_job_id":null,"html_url":"https://github.com/morganstanley/testplan","commit_stats":{"total_commits":960,"total_committers":41,"mean_commits":"23.414634146341463","dds":0.7739583333333333,"last_synced_commit":"8abed4bb57d24b199b919557ffbb37f0f8bf607e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/morganstanley/testplan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganstanley%2Ftestplan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganstanley%2Ftestplan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganstanley%2Ftestplan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganstanley%2Ftestplan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morganstanley","download_url":"https://codeload.github.com/morganstanley/testplan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morganstanley%2Ftestplan/sbom","scorecard":{"id":526966,"data":{"date":"2025-08-20T02:11:57Z","repo":{"name":"github.com/morganstanley/testplan","commit":"86cd59d5c21232d3b707f09744df4555af7abb7e"},"scorecard":{"version":"v4.13.1","commit":"49c0eed3a423f00c872b5c3c9f1bbca9e8aae799"},"score":7.2,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#binary-artifacts"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'force pushes' disabled on branch 'main'","Info: 'allow deletion' disabled on branch 'main'","Info: status checks require up-to-date branches for 'main'","Info: 'last push approval' enabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Warn: number of required reviewers is only 1 on branch 'main'","Info: stale review dismissal enabled on branch 'main'","Info: settings apply to administrators on branch 'main'","Info: codeowner review is required on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#branch-protection"}},{"name":"CI-Tests","score":10,"reason":"30 out of 30 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#ci-tests"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#code-review"}},{"name":"Contributors","score":10,"reason":"4 different organizations found -- score normalized to 10","details":["Info: contributors work for finos,morgan stanley,morganstanley,offchainlabs"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#contributors"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#dangerous-workflow"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: tool 'Dependabot' is used: :0"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#dependency-update-tool"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no OSSFuzz integration found: Follow the steps in https://github.com/google/oss-fuzz to integrate fuzzing for your project.\nOver time, try to add fuzzing for more functionalities of your project. (High effort)","Warn: no OneFuzz integration found: Follow the steps in https://github.com/microsoft/onefuzz to start fuzzing for your project.\nOver time, try to add fuzzing for more functionalities of your project. (High effort)","Warn: no GoBuiltInFuzzer integration found: Follow the steps in https://go.dev/doc/fuzz/ to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no PythonAtherisFuzzer integration found: Follow the steps in https://github.com/google/atheris to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no CLibFuzzer integration found: Follow the steps in https://llvm.org/docs/LibFuzzer.html to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no CppLibFuzzer integration found: Follow the steps in https://llvm.org/docs/LibFuzzer.html to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no SwiftLibFuzzer integration found: Follow the steps in https://google.github.io/oss-fuzz/getting-started/new-project-guide/swift-lang/ to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no RustCargoFuzzer integration found: Follow the steps in https://rust-fuzz.github.io/book/cargo-fuzz.html to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no JavaJazzerFuzzer integration found: Follow the steps in https://github.com/CodeIntelligenceTesting/jazzer to enable fuzzing on your project.\nOver time, try to add fuzzing for more functionalities of your project. (Medium effort)","Warn: no ClusterFuzzLite integration found: Follow the steps in https://github.com/google/clusterfuzzlite to integrate fuzzing as part of CI.\nOver time, try to add fuzzing for more functionalities of your project. (High effort)","Warn: no HaskellPropertyBasedTesting integration found: Use one of the following frameworks to fuzz your project:\nQuickCheck: https://hackage.haskell.org/package/QuickCheck\nhedgehog: https://hedgehog.qa/\nvalidity: https://github.com/NorfairKing/validity\nsmallcheck: https://hackage.haskell.org/package/smallcheck\nhspec: https://hspec.github.io/\ntasty: https://hackage.haskell.org/package/tasty (High effort)","Warn: no TypeScriptPropertyBasedTesting integration found: Use fast-check: https://github.com/dubzzz/fast-check (High effort)","Warn: no JavaScriptPropertyBasedTesting integration found: Use fast-check: https://github.com/dubzzz/fast-check (High effort)"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: License file found in expected location: LICENSE.md:1","Info: FSF or OSI recognized license: LICENSE.md:1"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#license"}},{"name":"Maintained","score":10,"reason":"20 commit(s) out of 30 and 0 issue activity out of 30 found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#maintained"}},{"name":"Packaging","score":10,"reason":"publishing workflow detected","details":["Info: GitHub/GitLab publishing workflow used in run https://api.github.com/repos/morganstanley/testplan/actions/runs/16984274116: .github/workflows/cut_version.yml:56"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cut_version.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cut_version.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cut_version.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cut_version.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cut_version.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cut_version.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/package.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scorecards.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/scorecards.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_pr.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_pr.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pr.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_pr.yml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pr.yml:134: update your workflow using https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=pin","Warn: pipCommand not pinned by hash: scripts/docker/Dockerfile.template:5","Warn: pipCommand not pinned by hash: .github/workflows/cut_version.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/cut_version.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/package.yml:23","Info:  16 out of  23 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   8 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (30) are checked with a SAST tool","Info: SAST tool detected: CodeQL"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#sast"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/morganstanley/.github/SECURITY.md:1","Info: Found linked content: github.com/morganstanley/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/morganstanley/.github/SECURITY.md:1","Info: Found text in security policy: github.com/morganstanley/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":0,"reason":"0 out of 5 artifacts are signed or have provenance","details":["Warn: release artifact 25.8.0 does not have provenance: https://api.github.com/repos/morganstanley/testplan/releases/240161472","Warn: release artifact 25.8.0 not signed: https://api.github.com/repos/morganstanley/testplan/releases/240161472","Warn: release artifact latest does not have provenance: https://api.github.com/repos/morganstanley/testplan/releases/240158291","Warn: release artifact latest not signed: https://api.github.com/repos/morganstanley/testplan/releases/240158291","Warn: release artifact 25.3.0 does not have provenance: https://api.github.com/repos/morganstanley/testplan/releases/208050786","Warn: release artifact 25.3.0 not signed: https://api.github.com/repos/morganstanley/testplan/releases/208050786","Warn: release artifact 25.1.0 does not have provenance: https://api.github.com/repos/morganstanley/testplan/releases/195547621","Warn: release artifact 25.1.0 not signed: https://api.github.com/repos/morganstanley/testplan/releases/195547621","Warn: release artifact 24.9.2 does not have provenance: https://api.github.com/repos/morganstanley/testplan/releases/174818652","Warn: release artifact 24.9.2 not signed: https://api.github.com/repos/morganstanley/testplan/releases/174818652"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#signed-releases"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:11","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/codeql-analysis.yml:21","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:19","Warn: no topLevel permission defined: .github/workflows/cut_version.yml:1: Visit https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/cut_version.yml/main?enable=permissions\nTick the 'Restrict permissions for GITHUB_TOKEN'\nUntick other options\nNOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead. (Low effort)","Warn: jobLevel permissions set to 'write-all': .github/workflows/cut_version.yml:10: Verify which permissions are needed and consider whether you can reduce them. (High effort)","Warn: jobLevel permissions set to 'write-all': .github/workflows/cut_version.yml:58: Verify which permissions are needed and consider whether you can reduce them. (High effort)","Info: topLevel 'contents' permission set to 'read': .github/workflows/package.yml:10","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/package.yml:16: Verify which permissions are needed and consider whether you can reduce them. (High effort)","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/package.yml:17: Verify which permissions are needed and consider whether you can reduce them. (High effort)","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/package.yml:18: Verify which permissions are needed and consider whether you can reduce them. (High effort)","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/package.yml:19","Info: topLevel permissions set to 'read-all': .github/workflows/scorecards.yml:18","Warn: no topLevel permission defined: .github/workflows/test_pr.yml:1: Visit https://app.stepsecurity.io/secureworkflow/morganstanley/testplan/test_pr.yml/main?enable=permissions\nTick the 'Restrict permissions for GITHUB_TOKEN'\nUntick other options\nNOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead. (Low effort)"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#token-permissions"}},{"name":"Vulnerabilities","score":-1,"reason":"internal error: vulnerabilitiesClient.ListUnfixedVulnerabilities: internal error: osv-scanner panic: runtime error: index out of range [0] with length 0","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/49c0eed3a423f00c872b5c3c9f1bbca9e8aae799/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T04:39:30.452Z","repository_id":36961844,"created_at":"2025-08-20T04:39:30.452Z","updated_at":"2025-08-20T04:39:30.452Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blackbox-testing","integration-testing","multitest","testing","testing-framework","testplan"],"created_at":"2025-05-31T10:38:29.679Z","updated_at":"2026-03-10T09:07:28.029Z","avatar_url":"https://github.com/morganstanley.png","language":"Python","readme":"|ReadTheDocs|_ |TravisCI|_\n\n.. image:: https://img.shields.io/badge/Lifecycle-Active-brightgreen\n    :alt: Lifecycle Active\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\n.. image:: https://github.com/morganstanley/testplan/blob/main/doc/images/logo/testplan.png\n\na multi-testing framework\n-------------------------\n\n*..because unit tests can only go so far..*\n\nTestplan is a `Python \u003chttp://python.org\u003e`_ package that can start a local live\nenvironment, setup mocks, connections to services and run tests against these.\nIt provides:\n\n  * ``MultiTest`` a feature extensive functional testing system with a rich set\n    of *assertions* and report rendering logic.\n  * Built-in inheritable drivers to create a local live *environment*.\n  * Configurable, diverse and expandable test execution mechanism including\n    *parallel* execution capability.\n  * Test *tagging* for flexible filtering and selective execution as well as\n    generation of multiple reports (for each tag combination).\n  * Integration with other unit testing frameworks (like GTest).\n  * Rich, unified reports (json/PDF/XML) and soon (HTML/UI).\n\n\nBasic example\n=============\n\nThis is how a very basic Testplan application looks like.\n\n.. code-block:: python\n\n    import sys\n\n    from testplan import test_plan\n    from testplan.testing.multitest import MultiTest, testcase, testsuite\n\n    def multiply(numA, numB):\n        return numA * numB\n\n\n    @testsuite\n    class BasicSuite(object):\n\n        @testcase\n        def basic_multiply(self, env, result):\n            result.equal(multiply(2, 3), 6, description='Passing assertion')\n            result.equal(multiply(2, 2), 5, description='Failing assertion')\n\n\n    @test_plan(name='Multiply')\n    def main(plan):\n        test = MultiTest(name='MultiplyTest',\n                         suites=[BasicSuite()])\n        plan.add(test)\n\n\n    if __name__ == '__main__':\n      sys.exit(not main())\n\n\nExample execution:\n\n.. code-block:: bash\n\n    $ python ./test_plan.py -v\n            Passing assertion - Pass\n              6 == 6\n            Failing assertion - Fail\n              File: .../test_plan.py\n              Line: 18\n              4 == 5\n          [basic_multiply] -\u003e Fail\n        [BasicSuite] -\u003e Fail\n      [MultiplyTest] -\u003e Fail\n    [Multiply] -\u003e Fail\n\n\nSystem integration testing example\n==================================\n\nTesting a server and a client communication.\n\n.. code-block:: python\n\n    import sys\n\n    from testplan import test_plan\n    from testplan.testing.multitest import MultiTest, testsuite, testcase\n    from testplan.testing.multitest.driver.tcp import TCPServer, TCPClient\n    from testplan.common.utils.context import context\n\n\n    @testsuite\n    class TCPTestsuite(object):\n        \"\"\"Testsuite for server client connection testcases.\"\"\"\n\n        def setup(self, env):\n            env.server.accept_connection()\n\n        @testcase\n        def send_and_receive_msg(self, env, result):\n            \"\"\"Basic send and receive hello message testcase.\"\"\"\n            msg = env.client.cfg.name\n            result.log('Client is sending his name: {}'.format(msg))\n            bytes_sent = env.client.send_text(msg)\n\n            received = env.server.receive_text(size=bytes_sent)\n            result.equal(received, msg, 'Server received client name')\n\n            response = 'Hello {}'.format(received)\n            result.log('Server is responding: {}'.format(response))\n            bytes_sent = env.server.send_text(response)\n\n            received = env.client.receive_text(size=bytes_sent)\n            result.equal(received, response, 'Client received response')\n\n\n    @test_plan(name='TCPConnections')\n    def main(plan):\n        test = MultiTest(name='TCPConnectionsTest',\n                         suites=[TCPTestsuite()],\n                         environment=[\n                             TCPServer(name='server'),\n                             TCPClient(name='client',\n                                       host=context('server', '{{host}}'),\n                                       port=context('server', '{{port}}'))])\n        plan.add(test)\n\n\n    if __name__ == '__main__':\n        sys.exit(not main())\n\n\nExample execution:\n\n.. code-block:: bash\n\n    $ python ./test_plan.py -v\n            Client is sending: client\n            Server received - Pass\n              client == client\n            Server is responding: Hello client\n            Client received - Pass\n              Hello client == Hello client\n          [send_and_receive_msg] -\u003e Pass\n        [TCPTestsuite] -\u003e Pass\n      [TCPConnectionsTest] -\u003e Pass\n    [TCPConnections] -\u003e Pass\n\nA persistent and human readable test evidence PDF report:\n\n.. code-block:: bash\n\n    $ python ./test_plan.py --pdf report.pdf\n      [TCPConnectionsTest] -\u003e Pass\n    [TCPConnections] -\u003e Pass\n    PDF generated at report.pdf\n\n.. image:: https://github.com/morganstanley/testplan/blob/main/doc/images/pdf/readme_server_client.png\n\n\nDocumentation\n=============\n\nFor complete documentation that includes downloadable examples, visit this\n`link \u003chttp://testplan.readthedocs.io\u003e`_.\n\n\nContribution\n============\n\nA step by step guide to contribute to Testplan framework can be found\n`here \u003chttp://testplan.readthedocs.io/en/latest/about.html#contributing\u003e`__.\n\n\nLicense\n=======\n\nLicense information `here \u003chttps://github.com/morganstanley/testplan/blob/main/LICENSE.md\u003e`__.\n\n.. |ReadTheDocs| image:: https://readthedocs.org/projects/testplan/badge/?version=latest\n.. _ReadTheDocs: http://testplan.readthedocs.io/en/latest/\n.. |TravisCI| image:: https://api.travis-ci.com/MorganStanley/testplan.svg?branch=main\n.. _TravisCI: https://travis-ci.com/morganstanley/testplan\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganstanley%2Ftestplan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorganstanley%2Ftestplan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorganstanley%2Ftestplan/lists"}