LinuxSuRen / api-testing

YAML based API testing tool. 开源接口调试、测试工具。Mock Server

Home Page:https://linuxsuren.github.io/api-testing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide an HTTP endpoint for triggering a test suite

LinuxSuRen opened this issue · comments

commented

Description:

Now, users can trigger a test suite via the following command:
atest run -p http://localhost:9090/server.Runner/ConvertTestSuite?suite=api-testing

but, they still need download atest first. If we have a simple HTTP endpoint which have the same feature, it will be much handful.

Why

In CI/CD situation, users could trigger the api testing via a simple URL. Users could use Jenkins or Argo workflows, even this endpoint could support the webhook request from GitHub/Gitlab.

If the request from a GitHub/Gitlab webhook, we could even create a status against the target PR or commits.

commented

I almost forget that user can run the test case via the following request:

curl 'http://localhost:8080/server.Runner/RunTestCase' \
  --data-raw '{"suite":"atest","testcase":"getVersion","parameters":[]}'

but, we still need an API to run a test suite.

This issue has been open 30 days with no activity. This will be closed in 7 days.

This issue has been automatically marked as stale because it hasn't had any recent activity.If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the api-testing.