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

Artillery 40 requests without cache for /users #342

Open
sunshinejen opened this issue Mar 22, 2021 · 0 comments
Open

Artillery 40 requests without cache for /users #342

sunshinejen opened this issue Mar 22, 2021 · 0 comments
Assignees
Labels
task New task, feature or request team3 Issues for Practicum Team 3
Milestone

Comments

@sunshinejen
Copy link
Contributor

sunshinejen commented Mar 22, 2021

To run artillery test for 40 requests for 5 min without cache for /users:

  1. Navigate to your resource group (nsc-rg-xxxx)
  2. Select Function App (nsc-func-dev-xxxx)
  3. On the left hand side under Settings select Configuration
  4. Select CACHE_TOGGLE and change value to False, click OK
  5. Then make sure to click on SAVE to update application settings otherwise it will not change to the desired value

sprint6ss

6. Navigate to the artillery folder then run

artillery run --output report.json name-of-your-file.yaml

example yaml test file:

config:
  target: "https://nsc-func-dev-usw2-tuesday.azurewebsites.net"
  phases:
    - duration: 300
      arrivalRate: 40
      name: " Sprint 6 Performance Test"
scenarios:
  - flow:
      - post:
          url: "/api/users"
          json:
             name: "name" 

This will create a report.json in the artillery folder. Since we were not creating a PR we opted to easily create a report vs running the GitHub actions to save/upload the report to the Azure container.

  1. Remember to revert the CACHE_TOGGLE to True in Azure and save changes.

Snippet of report:

Summary report @ 17:26:35(-0700) 2021-03-23
 Scenarios launched: 12000
 Scenarios completed: 1937
 Requests completed: 1937
 Mean response/sec: 28.54
 Response time (msec):
  min: 143.4
  max: 119881.6
  median: 44739.2
  p95: 113046.8
  p99: 119008.8
 Scenario counts:
  0: 12000 (100%)
 Codes:
  422: 1937
 Errors:
  ESOCKETTIMEDOUT: 10063
Date Activity Time
3/19 Group discussion on time to meet for testing 30min
3/21 Created task on Github 5 min
3/21 Running test/team meeting/documentation 3 hours
@sunshinejen sunshinejen added task New task, feature or request team3 Issues for Practicum Team 3 labels Mar 22, 2021
@sunshinejen sunshinejen added this to the Sprint 06 milestone Mar 22, 2021
@sunshinejen sunshinejen self-assigned this Mar 22, 2021
@sunshinejen sunshinejen changed the title Artillery 40 requests without cache /users Artillery 40 requests without cache for /users Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task New task, feature or request team3 Issues for Practicum Team 3
Projects
None yet
Development

No branches or pull requests

1 participant