Skip to content

Commit 22020fb

Browse files
Merge pull request #843 from atlassian/release/6.2.2
Release/6.2.2
2 parents a306099 + babbb22 commit 22020fb

17 files changed

+88
-59
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This repository contains Taurus scripts for performance testing of Atlassian Dat
1111
* Jira Service Management [Long Term Support release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): `4.13.20`, `4.20.8`
1212

1313
* Supported Confluence versions:
14-
* Confluence [Long Term Support release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): `7.13.5`, `7.4.16`
14+
* Confluence [Long Term Support release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): `7.13.7`, `7.4.17`
1515

1616
* Supported Bitbucket Server versions:
1717
* Bitbucket Server [Long Term Support release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html): `7.6.14`, `7.17.6`

app/bamboo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ modules:
123123
httpsampler.ignore_failed_embedded_resources: "true"
124124
selenium:
125125
chromedriver:
126-
version: "101.0.4951.41" # Supports Chrome version 101. You can refer to http://chromedriver.chromium.org/downloads
126+
version: "102.0.5005.61" # Supports Chrome version 102. You can refer to http://chromedriver.chromium.org/downloads
127127
reporting:
128128
- data-source: sample-labels
129129
module: junit-xml

app/bitbucket.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ modules:
9090
httpsampler.ignore_failed_embedded_resources: "true"
9191
selenium:
9292
chromedriver:
93-
version: "101.0.4951.41" # Supports Chrome version 101. You can refer to http://chromedriver.chromium.org/downloads
93+
version: "102.0.5005.61" # Supports Chrome version 102. You can refer to http://chromedriver.chromium.org/downloads
9494
reporting:
9595
- data-source: sample-labels
9696
module: junit-xml

app/confluence.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ modules:
114114
httpsampler.ignore_failed_embedded_resources: "true"
115115
selenium:
116116
chromedriver:
117-
version: "101.0.4951.41" # Supports Chrome version 101. You can refer to http://chromedriver.chromium.org/downloads
117+
version: "102.0.5005.61" # Supports Chrome version 102. You can refer to http://chromedriver.chromium.org/downloads
118118
reporting:
119119
- data-source: sample-labels
120120
module: junit-xml

app/jira.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ modules:
118118
httpsampler.ignore_failed_embedded_resources: "true"
119119
selenium:
120120
chromedriver:
121-
version: "101.0.4951.41" # Supports Chrome version 101. You can refer to http://chromedriver.chromium.org/downloads
121+
version: "102.0.5005.61" # Supports Chrome version 102. You can refer to http://chromedriver.chromium.org/downloads
122122
reporting:
123123
- data-source: sample-labels
124124
module: junit-xml

app/jsm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ modules:
170170
httpsampler.ignore_failed_embedded_resources: "true"
171171
selenium:
172172
chromedriver:
173-
version: "101.0.4951.41" # Supports Chrome version 101. You can refer to http://chromedriver.chromium.org/downloads
173+
version: "102.0.5005.61" # Supports Chrome version 102. You can refer to http://chromedriver.chromium.org/downloads
174174
reporting:
175175
- data-source: sample-labels
176176
module: junit-xml

app/selenium_ui/jira_ui.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def test_0_selenium_a_login(jira_webdriver, jira_datasets, jira_screen_shots):
77
modules.login(jira_webdriver, jira_datasets)
88

99

10+
def test_1_selenium_view_project_summary(jira_webdriver, jira_datasets, jira_screen_shots):
11+
modules.view_project_summary(jira_webdriver, jira_datasets)
12+
13+
1014
def test_1_selenium_browse_projects_list(jira_webdriver, jira_datasets, jira_screen_shots):
1115
modules.browse_projects_list(jira_webdriver, jira_datasets)
1216

@@ -51,11 +55,6 @@ def test_1_selenium_view_issue(jira_webdriver, jira_datasets, jira_screen_shots)
5155
modules.view_issue(jira_webdriver, jira_datasets)
5256

5357

54-
def test_1_selenium_view_project_summary(jira_webdriver, jira_datasets, jira_screen_shots):
55-
modules.view_project_summary(jira_webdriver, jira_datasets)
56-
57-
58-
5958
"""
6059
Add custom actions anywhere between login and log out action. Move this to a different line as needed.
6160
Write your custom selenium scripts in `app/extension/jira/extension_ui.py`.

app/util/analytics/analytics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def __init__(self, application: BaseApplication):
5353
self.application_version = application.version
5454
self.nodes_count = application.nodes_count
5555
self.dataset_information = application.dataset_information
56+
if self.app_type != CROWD:
57+
self.processors = application.processors
5658
# JSM(INSIGHT) app type has additional concurrency fields: concurrency_agents, concurrency_customers
5759
if self.app_type == INSIGHT:
5860
self.concurrency_agents = self.conf.agents_concurrency

app/util/analytics/analytics_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def generate_report_summary(collector):
8181
summary_report.append(f'Application|{collector.app_type} {collector.application_version}')
8282
summary_report.append(f'Dataset info|{collector.dataset_information}')
8383
summary_report.append(f'Application nodes count|{collector.nodes_count}')
84+
if not collector.app_type == CROWD:
85+
summary_report.append(f'Available Processors|{collector.processors}')
8486
summary_report.append(f'Concurrency|{collector.concurrency}')
8587
summary_report.append(f'Expected test run duration from yml file|{collector.duration} sec')
8688
summary_report.append(f'Actual test run duration|{collector.actual_duration} sec')

app/util/analytics/application_info.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from util.api.bitbucket_clients import BitbucketRestClient
66
from util.api.crowd_clients import CrowdRestClient
77
from util.api.bamboo_clients import BambooClient
8-
from lxml import etree
98
import json
109

1110
JIRA = 'jira'
@@ -52,6 +51,10 @@ def selenium_default_actions(self):
5251
def locust_default_actions(self):
5352
return self.get_default_actions()['locust']
5453

54+
@property
55+
def processors(self):
56+
return self.client.get_available_processors()
57+
5558

5659
class Jira(BaseApplication):
5760
type = JIRA
@@ -64,7 +67,7 @@ def version(self):
6467

6568
@property
6669
def nodes_count(self):
67-
return self.client.get_cluster_nodes_count(jira_version=self.version)
70+
return len(self.client.get_nodes())
6871

6972
def __issues_count(self):
7073
return self.client.get_total_issues_count()
@@ -83,7 +86,7 @@ def version(self):
8386

8487
@property
8588
def nodes_count(self):
86-
return self.client.get_confluence_nodes_count()
89+
return len(self.client.get_confluence_nodes())
8790

8891
@property
8992
def dataset_information(self):
@@ -92,7 +95,6 @@ def dataset_information(self):
9295

9396
class Bitbucket(BaseApplication):
9497
type = BITBUCKET
95-
bitbucket_repos_selector = "#content-bitbucket\.atst\.repositories-0>.field-group>.field-value" # noqa W605
9698

9799
@property
98100
def version(self):
@@ -104,13 +106,7 @@ def nodes_count(self):
104106

105107
@property
106108
def dataset_information(self):
107-
system_page_html = self.client.get_bitbucket_system_page()
108-
if 'Repositories' in system_page_html:
109-
dom = etree.HTML(system_page_html)
110-
repos_count = dom.cssselect(self.bitbucket_repos_selector)[0].text
111-
return f'{repos_count} repositories'
112-
else:
113-
return 'Could not parse number of Bitbucket repositories'
109+
return f'{self.client.get_bitbucket_repo_count()} repositories'
114110

115111

116112
class Jsm(BaseApplication):
@@ -123,9 +119,7 @@ def version(self):
123119

124120
@property
125121
def nodes_count(self):
126-
jira_server_info = self.client.get_server_info()
127-
jira_server_version = jira_server_info.get('version', '')
128-
return self.client.get_cluster_nodes_count(jira_version=jira_server_version)
122+
return len(self.client.get_nodes())
129123

130124
def __issues_count(self):
131125
return self.client.get_total_issues_count()

0 commit comments

Comments
 (0)