我對所有這些都很陌生,並且設置它已經有點壓倒性了。我正在使用ant來運行一系列使用testng套件的測試。Selenium和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
它看起來像某種依賴的問題,但我不知道如何着手。任何建議表示讚賞!
如果你給我們你的螞蟻代碼,它會幫助我們。 – Greg