Skip to content

Commit 0660cf8

Browse files
author
admin
committed
fix cqls for selenium
1 parent d29cf47 commit 0660cf8

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

app/locustio/confluence/requests_params.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# flake8: noqa
22
from locustio.common_utils import read_input_file, BaseResource
3-
from util.project_paths import (CONFLUENCE_PAGES, CONFLUENCE_BLOGS, CONFLUENCE_USERS, CONFLUENCE_STATIC_CONTENT,
4-
CONFLUENCE_CQLS)
3+
from util.project_paths import (CONFLUENCE_PAGES, CONFLUENCE_BLOGS, CONFLUENCE_USERS, CONFLUENCE_STATIC_CONTENT)
54

65

76
def confluence_datasets():
87
data_sets = dict()
98
data_sets["pages"] = read_input_file(CONFLUENCE_PAGES)
109
data_sets["blogs"] = read_input_file(CONFLUENCE_BLOGS)
1110
data_sets["users"] = read_input_file(CONFLUENCE_USERS)
12-
data_sets["cqls"] = read_input_file(CONFLUENCE_CQLS)
1311
data_sets['static-content'] = read_input_file(CONFLUENCE_STATIC_CONTENT)
1412

1513
return data_sets

app/selenium_ui/confluence/modules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,19 @@ def sub_measure():
303303
measure()
304304

305305
def cql_search_three_words(webdriver):
306-
return cql_search(webdriver, cql_string=THREE_WORDS_CQL)
306+
return cql_search(webdriver, cql_string=THREE_WORDS_CQL, print_timing_suffix='3_words')
307307

308308

309309
def cql_search_two_words(webdriver):
310-
return cql_search(webdriver, cql_string=TWO_WORDS_CQL)
310+
return cql_search(webdriver, cql_string=TWO_WORDS_CQL, print_timing_suffix='2_words')
311311

312312

313-
def cql_search(webdriver, cql_string):
313+
def cql_search(webdriver, cql_string, print_timing_suffix):
314314
page = Page(webdriver)
315315
page.wait_until_visible(PageLocators.search_box)
316316
PopupManager(webdriver).dismiss_default_popup()
317317

318-
@print_timing("selenium_cql_search")
318+
@print_timing(f"selenium_cql_search_{print_timing_suffix}")
319319
def measure():
320320
page.get_element(PageLocators.search_box).send_keys(cql_string)
321321
page.wait_until_any_ec_presented((PageLocators.empty_search_results, PageLocators.search_results),

app/selenium_ui/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
BITBUCKET_PROJECTS, BITBUCKET_REPOS, BITBUCKET_PRS, CONFLUENCE_BLOGS, CONFLUENCE_PAGES, CONFLUENCE_CUSTOM_PAGES, \
2525
CONFLUENCE_USERS, ENV_TAURUS_ARTIFACT_DIR, JSM_DATASET_REQUESTS, JSM_DATASET_CUSTOMERS, JSM_DATASET_AGENTS, \
2626
JSM_DATASET_SERVICE_DESKS_L, JSM_DATASET_SERVICE_DESKS_M, JSM_DATASET_SERVICE_DESKS_S, JSM_DATASET_CUSTOM_ISSUES, \
27-
JSM_DATASET_INSIGHT_SCHEMAS, JSM_DATASET_INSIGHT_ISSUES, BAMBOO_USERS, BAMBOO_BUILD_PLANS, CONFLUENCE_CQLS
27+
JSM_DATASET_INSIGHT_SCHEMAS, JSM_DATASET_INSIGHT_ISSUES, BAMBOO_USERS, BAMBOO_BUILD_PLANS
2828

2929
SCREEN_WIDTH = 1920
3030
SCREEN_HEIGHT = 1080
@@ -87,7 +87,6 @@ def confluence_dataset(self):
8787
self.dataset["pages"] = self.__read_input_file(CONFLUENCE_PAGES)
8888
self.dataset["blogs"] = self.__read_input_file(CONFLUENCE_BLOGS)
8989
self.dataset["users"] = self.__read_input_file(CONFLUENCE_USERS)
90-
self.dataset["cqls"] = self.__read_input_file(CONFLUENCE_CQLS)
9190
self.dataset["custom_pages"] = self.__read_input_file(
9291
CONFLUENCE_CUSTOM_PAGES)
9392
return self.dataset

app/util/data_preparation/confluence_prepare_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from util.api.confluence_clients import ConfluenceRpcClient, ConfluenceRestClient
99
from util.common_util import print_timing
1010
from util.conf import CONFLUENCE_SETTINGS
11-
from util.project_paths import (CONFLUENCE_USERS, CONFLUENCE_PAGES, CONFLUENCE_BLOGS, CONFLUENCE_CQLS,
11+
from util.project_paths import (CONFLUENCE_USERS, CONFLUENCE_PAGES, CONFLUENCE_BLOGS,
1212
CONFLUENCE_CUSTOM_PAGES, CONFLUENCE_WORDS)
1313

1414
__warnings_filter()

app/util/project_paths.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def __get_default_test_actions():
121121
CONFLUENCE_USERS = __get_confluence_dataset('users.csv')
122122
CONFLUENCE_PAGES = __get_confluence_dataset('pages.csv')
123123
CONFLUENCE_BLOGS = __get_confluence_dataset('blogs.csv')
124-
CONFLUENCE_CQLS = __get_confluence_dataset('cqls.csv')
125124
CONFLUENCE_STATIC_CONTENT = __get_confluence_dataset('static-content/files_upload.csv')
126125
CONFLUENCE_CUSTOM_PAGES = __get_confluence_dataset('custom_pages.csv')
127126
CONFLUENCE_WORDS = __get_confluence_dataset('static-content/words.csv')

0 commit comments

Comments
 (0)