2012-08-23 2 views
-2

저는이 모든 것을 처음 접했고 설정하기가 다소 어려웠습니다. 나는 개미를 사용하여 testng 스위트를 사용하여 많은 테스트를 수행하고있다.Selenium and Spring @Configuration 메서드를 호출하지 못했습니다.

내가이 오류가 발생 지점에 도달 :

[testng] Failed to invoke @Configuration method org.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance:Error creating bean with name 'com.mystuffs.tests1.CreateTest1': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.mystuffs.web.BrowserTest1.setBrowser(com.mystuffs.web.browser.Browser); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'browser' defined in class path resource [applicationcontext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser

그것은 어떤 종류의 종속성 문제처럼 보이지만 내가 진행하는 방법을 잘 모르겠습니다. 어떤 조언을 부탁드립니다! 문제가 응용 프로그램을 시작하는 동안 셀레늄 브라우저 세션을 실체화하려고한다는 것입니다 이것은도 실패한 :

+0

개미 코드도 함께 보내 주시면 도움이 될 것입니다. – Greg

답변

0

혹시 당신은 무엇을하려고

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser

그래서 당신은 셀레늄 브라우저를 실행 할 수없는 이유를 살펴해야

관련 문제