diff --git a/.trivyignore b/.trivyignore index 2224c14aea1e7f3e827f04baa5c206750be41462..326053cdbf693e66983e57d95fb899e490f7ab75 100644 --- a/.trivyignore +++ b/.trivyignore @@ -1,3 +1,3 @@ # https://trivy.dev/v0.65/docs/configuration/filtering/#by-finding-ids # Accept the risk until 2026-01-01 -CVE-2025-50181 exp:2026-01-01 +# CVE-2025-50181 exp:2026-01-01 diff --git a/load_check.py b/load_check.py index 294eef483f2d6bdad2c10bce38e510d9a7173528..9cf06ac19d09c8a2be9c674dc510714af2e4079e 100644 --- a/load_check.py +++ b/load_check.py @@ -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 diff --git a/requirements.txt b/requirements.txt index 66d0e3293c63bf5713b92d44106a0be51360d798..589f1a447d63caa0597c62160bfec48eb28b1b6d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -selenium==3.141.0 -urllib3==1.26.19 +selenium==4.36.0 +urllib3==2.5.0 \ No newline at end of file