From 689592d30da90dfd7e9f72e49663b44e16be2b85 Mon Sep 17 00:00:00 2001 From: burak Date: Mon, 6 Jan 2025 00:19:02 +0300 Subject: [PATCH] run all tests --- test/test_join_leave.py | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/test/test_join_leave.py b/test/test_join_leave.py index 4f3fd681..359757c6 100644 --- a/test/test_join_leave.py +++ b/test/test_join_leave.py @@ -240,7 +240,7 @@ def get_stop_recording_button(self): stop_recording_button = self.chrome.get_element(By.ID, "stop-recording-button") return stop_recording_button - def _test_home_page_create_room(self): + def test_home_page_create_room(self): room = "room"+str(random.randint(100, 999)) app = "/"+self.test_app_name if self.url.endswith("localhost:3000"): @@ -258,7 +258,7 @@ def _test_home_page_create_room(self): self.chrome.close_all() - def _test_home_page_create_random_room(self): + def test_home_page_create_random_room(self): app = "/"+self.test_app_name if self.url.endswith("localhost:3000"): app = "" @@ -270,7 +270,7 @@ def _test_home_page_create_random_room(self): self.chrome.close_all() - def _test_camera_mic_setting_in_waiting_room(self): + def test_camera_mic_setting_in_waiting_room(self): room = "room"+str(random.randint(100, 999)) app = "/"+self.test_app_name if self.url.endswith("localhost:3000"): @@ -323,7 +323,7 @@ def _test_camera_mic_setting_in_waiting_room(self): assert(meeting_gallery.is_displayed()) self.chrome.close_all() - def _test_join_as_camera_mic_off(self): + def test_join_as_camera_mic_off(self): room = "room"+str(random.randint(100, 999)) app = "/"+self.test_app_name if self.url.endswith("localhost:3000"): @@ -348,7 +348,7 @@ def _test_join_as_camera_mic_off(self): self.chrome.close_all() #this test will not work on local since we have camera and mic in local - def _test_join_without_camera_mic(self): + def test_join_without_camera_mic(self): self.chrome.close_all() self.chrome = Browser() self.chrome.init(True, False) @@ -402,7 +402,7 @@ def set_and_test_tile_count(self, limit): wait.until(lambda x: self.get_tile_count() == limit) print("video_track_limit: "+str(limit)) - def _test_tile_count(self): + def test_tile_count(self): #self.chrome.makeFullScreen() room = "room"+str(random.randint(100, 999)) self.join_room_in_new_tab("participantA", room) @@ -504,7 +504,7 @@ def send_reaction(self, reaction): self.chrome.mouse_click_on(reaction_button) - def _test_others_tile(self): + def test_others_tile(self): self.chrome.makeFullScreen() room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) @@ -588,7 +588,7 @@ def test_join_room_2_participants(self): self.chrome.close_all() - def _test_with_stats(self): + def test_with_stats(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -639,7 +639,7 @@ def open_close_participant_list_drawer(self): self.chrome.click_element(participant_list_button) time.sleep(2) - def _test_screen_share(self): + def test_screen_share(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -718,7 +718,7 @@ def _test_screen_share(self): self.chrome.close_all() - def _test_reconnection_while_screen_sharing(self): + def test_reconnection_while_screen_sharing(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -851,7 +851,7 @@ def test_join_room_N_participants(self): self.kill_participants_with_test_tool(process) self.chrome.close_all() - def _test_get_debugme_info(self): + def test_get_debugme_info(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -978,7 +978,7 @@ def get_video_container_by_stream_name(self, stream_name): - def _test_recording(self): + def test_recording(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -1026,7 +1026,7 @@ def _test_recording(self): self.chrome.close_all() - def _test_tiled_layout_test(self): + def test_tiled_layout_test(self): self.chrome.makeFullScreen() room = "room"+str(random.randint(100, 999)) wait = self.chrome.get_wait(30, 3) @@ -1067,7 +1067,7 @@ def _test_tiled_layout_test(self): self.chrome.close_all() #FIXME uncomment test - def _test_pinned_layout_test(self): + def test_pinned_layout_test(self): self.chrome.makeFullScreen() room = "room"+str(random.randint(100, 999)) wait = self.chrome.get_wait(30, 3) @@ -1120,7 +1120,7 @@ def _test_pinned_layout_test(self): #FIXME uncomment test - def _test_pin_on_video_card(self): + def test_pin_on_video_card(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -1227,7 +1227,7 @@ def _test_pin_on_video_card(self): - def _test_pin_on_participant_list(self): + def test_pin_on_participant_list(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -1322,7 +1322,7 @@ def _test_pin_on_participant_list(self): self.chrome.close_all() #FIXME uncomment test - def _test_mute_on_video_card(self): + def test_mute_on_video_card(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) handle_2 = self.join_room_in_new_tab("participantB", room) @@ -1377,7 +1377,7 @@ def _test_mute_on_video_card(self): self.chrome.close_all() - def _test_talking_people_frame(self): + def test_talking_people_frame(self): self.chrome.close_all() current_dir = os.path.dirname(os.path.abspath(__file__)) fake_audio_file_path = os.path.join(current_dir, "fake_mic.wav") @@ -1426,7 +1426,7 @@ def _test_talking_people_frame(self): self.chrome.close_all() - def _test_video_track_assignment(self): + def test_video_track_assignment(self): self.chrome.close_all() current_dir = os.path.dirname(os.path.abspath(__file__)) fake_audio_file_path = os.path.join(current_dir, "fake_mic.wav") @@ -1508,7 +1508,7 @@ def _test_video_track_assignment(self): self.chrome.close_all() - def _test_camera_mic_setting_in_meeting_room(self): + def test_camera_mic_setting_in_meeting_room(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) @@ -1553,7 +1553,7 @@ def _test_camera_mic_setting_in_meeting_room(self): self.chrome.close_all() - def _test_chat_messages(self): + def test_chat_messages(self): message_A = "hello from A" message_B = "hello from B" message_C = "hello from C" @@ -1634,7 +1634,7 @@ def _test_chat_messages(self): self.chrome.close_all() - def _test_reactions(self): + def test_reactions(self): reaction_A = "💖" reaction_B = "👍🏼" reaction_C = "🎉" @@ -1696,7 +1696,7 @@ def _test_reactions(self): self.chrome.close_all() - def _test_background_replacement(self): + def test_background_replacement(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) @@ -1745,7 +1745,7 @@ def rgb_to_hex(self, rgb_string): return color - def _test_theme(self): + def test_theme(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room) @@ -1828,7 +1828,7 @@ def _test_theme(self): self.chrome.close_all() - def _test_language(self): + def test_language(self): room = "room"+str(random.randint(100, 999)) handle_1 = self.join_room_in_new_tab("participantA", room)