Commit 09f7bae4 authored by Watchtek's avatar Watchtek
Browse files

Remove option after upgrade selenium version(not required)

parent d5b001b0
Loading
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -24,16 +24,13 @@ class MultipleTest(unittest.TestCase):
        print("1. [필수 입력] Chrome 위치 (e.g., /opt/chrome-linux64/chrome, D:\\tmp\\chrome-win64\\chrome.exe): ")
        self.binary_location = input().strip()

        print("\n2. [필수 입력] webdriver 위치 (e.g., /opt/chromedriver-linux64/chromedriver, D:\\tmp\\chromedriver-win64\\chromedriver.exe): ")
        self.webdriver_path = input().strip()

        print("\n3. [필수 입력] 테스트 대상 웹 (e.g., https://example.com:8443/): ")
        print("\n2. [필수 입력] 테스트 대상 웹 (e.g., https://example.com:8443/): ")
        self.dc_address = input()

        # A list is created to store multiple account configurations.
        self.account_configs = []
        # print("\n[필수 입력] 계정 정보를 한 줄씩 입력하세요. (포맷: 유형 / 아이디, 비번 / 세션 수)")
        print("\n4. [필수 입력] 계정유형(1-어드민,2-(지역)관리자,3-사용자) / 계정 접속정보 / 커넥션 비중")
        print("\n3. [필수 입력] 계정유형(1-어드민,2-(지역)관리자,3-사용자) / 계정 접속정보 / 커넥션 비중")
        print("ex) 1 / admin, admin / 3")
        print("ex) 2 / watchall, watchall / 3")
        print("ex) 3 / monitor, monitor / 4")
@@ -68,14 +65,14 @@ class MultipleTest(unittest.TestCase):
                print(f"잘못된 입력 형식입니다: '{user_input}'. 해당 줄은 무시됩니다.")

        # New inputs for connection management
        print("\n5. [선택] 테스트 유형(기본값: 일반접속): 일반 접속(1), 일시 접속(2), 부하 화면 접근(3)")
        print("\n4. [선택] 테스트 유형(기본값: 일반접속): 일반 접속(1), 일시 접속(2), 부하 화면 접근(3)")
        try:
            self.function_to_execute = int(input().strip())
        except ValueError:
            print("잘못된 입력입니다. 기본값 '일반 접속(1)'으로 설정합니다.")
            self.function_to_execute = 1

        print("\n6. [선택] 커넥션 수 / 테스트 시간(분)(기본값: 30개 / 120분)")
        print("\n5. [선택] 커넥션 수 / 테스트 시간(분)(기본값: 30개 / 120분)")
        try:
            pool_input = input().strip().split('/')
            self.max_connections = int(pool_input[0].strip()) if pool_input[0].strip() else 30
@@ -477,7 +474,7 @@ class MultipleTest(unittest.TestCase):
        if sys.platform.startswith('linux'): # Check if the operating system is Linux
            options.add_argument("--no-sandbox")
            options.add_argument("--disable-dev-shm-usage")
        driver = webdriver.Chrome(executable_path=self.webdriver_path, options=options)
        driver = webdriver.Chrome(options=options)
        driver.instance_number = driver_instance_number # Attach instance number to driver for logging
        driver.user_id = user_id # Attach user ID to driver for logging
        driver.implicitly_wait(10)  # Common implicit wait for this driver