2016-06-30 2 views
3
내가 만든

자동화 된 테스트를 호출되고. 이러한 테스트는 인턴 또는 셀레늄 디렉토리에서 실행됩니까? 이 테스트를 중지하거나 삭제하는 방법을 파악하지 못했습니다. 어떤 제안?인턴은 내가 <code>selenium-server</code>을 통해 테스트를 실행할 때마다 내 테스트 디렉토리에없는 <code>foo</code> 및 <code>bar</code> 단위 일련의 테스트를 실행 <code>intern (testing framework)</code>에 대한

이 단위 테스트에 정의 된 모든 suites이없는 내 intern.js 파일입니다

\t /* Name of the tunnel class to use for WebDriver tests. */ 
 
\t tunnel: "NullTunnel", 
 
    
 
\t loaderOptions: { 
 
\t  /* Packages that should be registered with the loader in each testing environment */ 
 
\t }, 
 
    
 
\t /* Unit test suite(s) to run in each browser */ 
 
    suites: [ /**/ ], 
 

 
\t /* Functional test suite(s) to execute against each browser once unit tests are completed */ 
 
\t functionalSuites: [ "src/test/intern/integration/ITIndexHtml" ], 
 

 
\t /* A regular expression matching URLs to files that should not be included in code coverage analysis */ 
 
\t excludeInstrumentation: /^(?:tests|node_modules)\// 
 
});

답변

3

처음 작동 테스트 중에 실행되는 시험은 기능 시험이다. 브라우저는 모두 동일한 수준의 테스트 지원을 제공하지는 않으며 테스트 기능을 약간 다르게 구현하는 경우도 있습니다. 인턴은 원격 브라우저를 테스트하여 작동 여부를 판별 한 다음 가능할 때 일관된 동작 (여러 브라우저간에 일관된)을 제공하려고합니다.

+0

'기능 테스트'를 해제 할 방법이 없습니까? 또는 그들이 실행되는 것을 볼 수없는 백그라운드에서 실행할 수 있습니까? –

+2

config의'capabilities' 속성 (또는 특정 브라우저의 환경 객체)에서'fixSessionCapabilities'를 false로 설정할 수 있습니다. 그러나이를 끄면 대상 브라우저에 따라 일부 기능 저하가 발생할 수 있습니다. – jason0x43

+0

! 감사! @ jason0x43 –