Autify Connect를 사용하여 로컬호스트 웹사이트를 테스트할 수 있나요?
  • 24 Oct 2024
  • 1 읽을 분
  • 기여자
  • 어두운

Autify Connect를 사용하여 로컬호스트 웹사이트를 테스트할 수 있나요?

  • 어두운

기사 요약

*이 페이지의 일부는 기계 번역되었습니다.

예, '로컬 호스트'에서 실행되는 웹사이트를 테스트하기 위해 Autify Connect를 사용할 수 있습니다.
그러나 시나리오의 대상 URL이 http://localhosthttp://127.0.0.1과 같이 로컬 호스트 또는 로컬 네트워크에 연결되는 경우 올바르게 작동하지 않습니다.
따라서 다음 방법 중 하나를 사용하여 테스트를 실행하세요:

  1. 로컬 호스트 localhost.autify.com을 사용합니다.
    127.0.0.1을 가리키는 FQDN이 있습니다. 로컬 호스트 또는 127.0.0.1 대신 이 FQDN을 사용할 수 있습니다.
    로컬 호스트`와 같은 호스트 이름으로 테스트 시나리오를 이미 녹화한 경우 테스트 계획에서 URL 대체 기능을 사용할 수 있습니다.

    • 로컬 호스트에 localhost.autify.comhttps와 함께 사용할 수 있나요?
      • 예, localhost.autify.comhttps로 작동하도록 하기 위한 로컬 SSL 인증서가 있습니다. 아래 단계에 따라 SSL 인증서를 설정합니다.

        • AutifyCA.pem](https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autify-localhost-ssl-cert/AutifyCA.pem){target="_blank"}, localhost.autify.com.crtlocalhost.autify.com.key 파일을 다운로드합니다.
        • 시스템에서 루트 인증서를 신뢰하도록 설정

        MacOS

        sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /file/path/AutifyCA.pem
        

        Linux

        # ca-certificates 패키지를 설치합니다.
        sudo apt-get install -y ca-certificates
        
        # AutifyCA.pem 파일의 이름을 AutifyCA.crt로 바꾸고 `/usr/local/share/ca-certificates` 디렉터리에 복사합니다.
        sudo cp AutifyCA.pem /usr/local/share/ca-certificates/AutifyCA.crt
        
        # 업데이트 명령을 실행합니다.
        sudo update-ca-certificates
        
        • 루트 인증서를 추가한 후 localhost.autify.com crt 및 키 파일을 사용하여 로컬 서버를 실행할 수 있습니다.
          • Nginx 설정 예제:
        # Nginx SSL 설정에 대한 자세한 정보는 http://nginx.org/en/docs/http/configuring_https_servers.html 에서 확인할 수 있습니다.
        # Nginx 설정에 아래 설정을 추가합니다.
        서버 {
            ...
            LISTEN 443 SSL;
            서버_이름 localhost.autify.com;
            ssl_certificate /파일/경로/localhost.autify.com.crt;
            ssl_certificate_key /파일/경로/localhost.autify.com.key;
        }
        
        • https://localhost.autify.com`에 액세스하여 확인
  2. 192.168.86.92`와 같은 다른 IP 주소를 사용합니다.

  3. 호스트` 파일을 편집하고 애플리케이션 별칭을 다음과 같이 설정합니다:

    127.0.0.1 local.your-application.com
    ::1 local.your-application.com
    

    호스트` 파일은 일반적으로 다음 경로에 위치합니다:

    OS경로
    Linux, macOS/etc/hosts
    Windowsc:\Windows\System32\드라이버\등\hosts

다음 호스트 이름은 지원되지 않습니다(전체 목록이 아님).
이러한 호스트 이름을 사용하여 시나리오를 녹화하는 경우 위에 설명된 방법 중 하나를 구현해야 합니다.

localhost
*.localhost
[::1]
127.0.0.1/8
169.254/16
[FE80::]/10

*예를 들어 Windows OS를 사용하는 테스트는 루프백도 인식합니다.

경고

요청이 앱 내에서 '로컬 호스트'(또는 지원되지 않는 호스트 이름)로 직접 전송되는 경우 위의 해결 방법은 작동하지 않습니다.

위의 방법으로도 해결되지 않는 경우 Autify 지원팀에 문의하세요.


이 문서가 도움이 되었습니까?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.