fixed testrail reports and e2e nightly

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2020-12-29 16:44:08 +01:00
parent d8235d9e17
commit 4f4f6cf29e
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
6 changed files with 21 additions and 12 deletions

View File

@ -6,7 +6,7 @@ import emoji
import base64 import base64
from os import environ from os import environ
from support.base_test_report import BaseTestReport from support.base_test_report import BaseTestReport
from sys import argv
class TestrailReport(BaseTestReport): class TestrailReport(BaseTestReport):
@ -87,6 +87,15 @@ class TestrailReport(BaseTestReport):
test_cases['medium'] = 736 test_cases['medium'] = 736
test_cases['low'] = 737 test_cases['low'] = 737
case_ids = list() case_ids = list()
for arg in argv:
if "run_testrail_ids" in arg:
key, value = arg.split('=')
case_ids = value.split(',')
if len(case_ids) == 0:
if 'critical or high' in argv:
for case in self.get_cases([test_cases['critical'], test_cases['high']]):
case_ids.append(case['id'])
else:
for phase in test_cases: for phase in test_cases:
for case in self.get_cases([test_cases[phase]]): for case in self.get_cases([test_cases[phase]]):
case_ids.append(case['id']) case_ids.append(case['id'])

View File

@ -998,8 +998,8 @@ class TestChatManagementMultipleDevice(MultipleDeviceTestCase):
dapp_view = profile_2.ens_usernames_button.click() dapp_view = profile_2.ens_usernames_button.click()
dapp_view.element_by_text('Get started').click() dapp_view.element_by_text('Get started').click()
dapp_view.ens_name.set_value(ens_user_message_sender['ens']) dapp_view.ens_name.set_value(ens_user_message_sender['ens'])
dapp_view.check_ens_name.click() dapp_view.check_ens_name.click_until_presence_of_element(dapp_view.find_element_by_translation_id("ens-got-it"))
dapp_view.element_by_text('Ok, got it').click() dapp_view.find_element_by_translation_id("ens-got-it").click()
device_1.just_fyi('Both devices joining the same public chat and send messages') device_1.just_fyi('Both devices joining the same public chat and send messages')
chat_name = device_1.get_random_chat_name() chat_name = device_1.get_random_chat_name()

View File

@ -504,8 +504,8 @@ class TestGroupChatMultipleDevice(MultipleDeviceTestCase):
device_1_chat.send_message_button.click() device_1_chat.send_message_button.click()
device_1_chat.chat_message_input.click() device_1_chat.chat_message_input.click()
for chat in device_1_chat, device_2_chat, device_3_chat: for chat in device_1_chat, device_2_chat, device_3_chat:
if not chat.image_chat_item.is_element_displayed(): if not chat.image_chat_item.is_element_displayed(30):
self.errors.append('Image is not shown in chat after sending for sender') self.errors.append('Image is not shown in chat after sending for %s' % chat.driver.number)
device_1.just_fyi('Send audio message to group chat and verify it on all devices') device_1.just_fyi('Send audio message to group chat and verify it on all devices')
device_1_chat.record_audio_message(message_length_in_seconds=3) device_1_chat.record_audio_message(message_length_in_seconds=3)

View File

@ -96,6 +96,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
sign_in_view.just_fyi('Check that transaction is appeared in transaction history') sign_in_view.just_fyi('Check that transaction is appeared in transaction history')
wallet_view.wait_balance_is_changed('STT', initial_amount_STT) wallet_view.wait_balance_is_changed('STT', initial_amount_STT)
if not wallet_view.transaction_history_button.is_element_displayed():
wallet_view.accounts_status_account.click() wallet_view.accounts_status_account.click()
transactions_view = wallet_view.transaction_history_button.click() transactions_view = wallet_view.transaction_history_button.click()
transactions_view.transactions_table.find_transaction(amount=sending_amount, asset='STT') transactions_view.transactions_table.find_transaction(amount=sending_amount, asset='STT')

View File

@ -4,7 +4,6 @@ from views.sign_in_view import SignInView
from datetime import datetime from datetime import datetime
import time import time
class TestPerformance(SingleDeviceTestCase): class TestPerformance(SingleDeviceTestCase):
def get_timestamps_by_event(self, *args): def get_timestamps_by_event(self, *args):