-
Notifications
You must be signed in to change notification settings - Fork 15
/
benchmarking.feature
47 lines (41 loc) · 1.9 KB
/
benchmarking.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Feature: Benchmarking
Tests to check the loading times for various pages on GOV.UK.
@local-network
Scenario: Check Bouncer application is up
Given I am testing "bouncer" internally
And I am benchmarking
When I request "http://www.attorneygeneral.gov.uk" from Bouncer directly
Then I should get a 301 status code
And I should get a "Location" header of "https://www.gov.uk/government/organisations/attorney-generals-office"
And the elapsed time should be less than 2 seconds
Scenario: Check the licence finder home page loads quickly
Given I am benchmarking
And I am testing through the full stack
And I force a varnish cache miss
When I visit "/licence-finder"
Then the elapsed time should be less than 2 seconds
Scenario: Check requesting a PDF takes a reasonable amount of time
Given I am testing "licensing" internally
And I am benchmarking
And I am testing through the full stack
And I force a varnish cache miss
When I request "/apply-for-a-licence/forms/bury/test-licence/9999-7-1,0-1"
Then the elapsed time should be less than 10 seconds
Scenario: Check whitehall-frontend pages load quickly
Given I am benchmarking
And I am testing through the full stack
And I force a varnish cache miss
When I visit "/government/how-government-works"
Then the elapsed time should be less than 2 seconds
Scenario: Check the whitehall API loads quickly
Given I am benchmarking
And I am testing through the full stack
And I force a varnish cache miss
When I visit "/api/world-locations"
Then the elapsed time should be less than 2 seconds
Scenario: Check the research and statistics page loads quickly
Given I am benchmarking
And I am testing through the full stack
And I force a varnish cache miss
When I visit "/search/research-and-statistics"
Then the elapsed time should be less than 4 seconds