간단한 테스트를 사용하여 UI 테스트를 실행 중입니다. 아래는 코드입니다.간단한 테스트에서 HTTPS URL을 열 수 없음
E_WARNING: fclose() expects parameter 1 to be resource, boolean given in /home/okhatav/PHP/simpletest/socket.php on line 255 Exception 1! Unexpected PHP error [fclose() expects parameter 1 to be resource, boolean given] severity [2] in [/home/okhatav/PHP/simpletest/socket.php line 255] in testWeAreTopOfGoogle in TestOfRankings 1) Error reading socket [Cannot open [ua-useast1a01-01-internalip.qa.host.net:443] with [] within [15] seconds] in testWeAreTopOfGoogle in TestOfRankings FAILURES!!!
브라우저 창에 해당 URL을 넣으면 서버를 찾을 수 없다고 표시됩니다. – RST
try catch 블록을 사용하면 서버가 존재하지 않습니다. – KDOT
이 URL은 유효한 URL이며 작동합니다. – Omkar