repository_info.feature
2.88 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Feature: Show Repository
In order to visualize the results of my repositories
As a regular user
I should see it's informations
@kalibro_configuration_restart @kalibro_processor_restart @javascript
Scenario: Testing the repository values
Given I have a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project
And I start to process that repository
And I wait up for a ready processing
When I visit the repository show page
Then I should see "Address"
And I should see "Configuration"
And I should see "Periodicity"
And I should see "Type"
And I should see "Description"
And I should see "License"
And I should see the given repository's content
@kalibro_configuration_restart @kalibro_processor_restart @javascript
Scenario: With a ready processing and asking to reprocess
Given I am a regular user
And I am signed in
And I own a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project named "QtCalculator"
And I start to process that repository
And I wait up for a ready processing
When I visit the repository show page
Then I should see the sample repository name
And I should see "State"
And I should see "Creation date"
And I should see "PREPARING time"
And I should see "COLLECTING time"
And I should see "BUILDING time"
And I should see "AGGREGATING time"
And I should see "CALCULATING time"
And I should see "INTERPRETING time"
When I click the "Metric Results" h3
And I click the "Modules Tree" h3
Then I should see "Metric"
And I should see "Value"
And I should see "Weight"
And I should see "Threshold"
And I should see "Name"
And I should see "Granularity"
And I should see "Grade"
When I click the Reprocess link
Then I should see "PREPARING"
@kalibro_configuration_restart @kalibro_processor_restart @javascript
Scenario: Just after start to process
Given I am a regular user
And I am signed in
And I have a sample project
And I have a sample configuration with native metrics
And I have a sample repository within the sample project
And I start to process that repository
When I visit the repository show page
Then I should see the sample repository name
And I should see "PREPARING"
And I should see "Address"
And I should see "Configuration"
And I should see "State"
And I should see "Creation date"
When I click the "Metric Results" h3
Then I should see "Loading data. Please, wait."
When I click the "Modules Tree" h3
Then I should see "Loading data. Please, wait."
And I wait for "75" seconds or until I see "COLLECTING"
And I wait for "60" seconds or until I see "AGGREGATING"
And I wait for "400" seconds or until I see "READY"