Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case not found #33

Open
dhodyrahmad opened this issue May 11, 2022 · 1 comment
Open

Test case not found #33

dhodyrahmad opened this issue May 11, 2022 · 1 comment

Comments

@dhodyrahmad
Copy link

dhodyrahmad commented May 11, 2022

hi, im trying to do the same way as example but ended with this.

Testing Case: test_case_1
  No test cases found

Total tests:	0
Total success:	0

All tests ran successfully!

my json file

{
  "name": "My API test",
  "testCases": {
    "test_case_1": {
      "path": "/api/posts",
      "method": "POST",
      "description": "POST API",
      "body": {
        "title": "This is  first post",
        "description": "This is first description"
      },
      "header": {
        "Accept": "application/json",
        "Content-Type": "application/json"
      }
    }
  },
  "url": "http://localhost:80"
}
@CKristensen
Copy link

you are probably doing
api-test -f test1.json test all

but you need to do

api-test -f test1.json run all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants