Closed aldokuzuo closed 10 years ago
@aldokuzuo, bom dia.
Quanto ao uso de um driver específico. Configure as seguintes propriedades no seu behave.properties:
behave.runner.screen.type=InternetExplorer
behave.runner.screen.binaryPath=<caminho do driver>
Quanto as novas versões, informo que lançamos apenas uma após a 1.3.0 que foi a versão 1.3.1. estamos trabalhando na versão 1.3.2, mas não há versão estável dela. A versão 1.3.1 não deveria apresentar incompatibilidades com o Windows, mas em todo caso, repetiremos os testes de pré release no Windows 7 e 8. Em breve daremos retorno quanto aos resultados.
Se mais alguém usou o DBehave 1.3.1 no Windows e puder comentar, agradeço o retorno.
Dom dia Vanderson, Eu tinha feito assim no behave.properties: behave.runner.screen.driverPath = c:IEDriverServer.exe behave.runner.screen.type=InternetExplorer behave.runner.screen.remote.name=internetExplorer behave.runner.screen.remote.url=http://127.0.0.1:4444/wd/hub
Além disso executei o seguinte comando no console do windows: java -jar selenium-server-standalone-2.40.0.jar -Dwebdriver.ie.driver=c:\
Estou fazendo certo?
Acho que entendi o problema. Tudo depende de como você quer abrir o navegador.
Se for remoto (em outra máquina) use as propriedades:
behave.runner.screen.type=RemoteWeb
behave.runner.screen.remote.name=internetExplorer
behave.runner.screen.remote.url=http://127.0.0.1:4444/wd/hub
Se for local, use apenas:
behave.runner.screen.type=InternetExplorer
behave.runner.screen.driverPath=<caminho do driver>
Beleza, eu fiz isso mas o erro continua: Ele abre o IE tendo como endereço um localhost e uma porta aleatória. No console do eclipse aparece essa mensagem: System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_45' Session ID: fb9088a6-25eb-41ed-93fc-6359a973ec69 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, enablePersistentHover=true, ignoreZoomSetting=false, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, initialBrowserUrl=http://localhost:31020/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] . at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.getElements(WebBase.java:133) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.verifyState(WebBase.java:190) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.waitElement(WebBase.java:209) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebMenuItem.mouseOver(WebMenuItem.java:53) at br.gov.frameworkdemoiselle.behave.parser.jbehave.CommonSteps.moverMouse(CommonSteps.java:283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jbehave.core.steps.StepCreator$ParameterisedStep.perform(StepCreator.java:550) at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499) at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479) at org.jbehave.core.embedder.StoryRunner.runScenarioSteps(StoryRunner.java:443) at org.jbehave.core.embedder.StoryRunner.runScenariosParametrisedByExamples(StoryRunner.java:412) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:301) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information)
Tem algum passo para ir ate alguma pagina da aplicação?
Como por exemplo:
Dado que vou para a tela "inicial"
Tem, o cenário é esse:
Dado que vou para a tela "Inicial" Quando movo o mouse sobre "Administrar desktop" E movo o mouse sobre "Administrar Campo" Quando clico em "Administrar Campo" Então será exibido "Listagem de Campos"
Cade a classe que mapeia a página inicial?
Não deu erro ao ir para página inicial?
sim deu erro ao tentar ir na pagina inicial.
O mapeamento ta assim:
@SuppressWarnings("unused")
@ScreenMap(name = "Inicial", base = Config.URLBASE, location = "/")
public class CabecalhoPage {
@ElementMap(name = "Administrar Tipos de Ato", locatorType = ElementLocatorType.LinkText, locator = "Administrar tipo de ato")
private MenuItem itemMenuAdminTiposAto;
@ElementMap(name = "Administrar desktop", locatorType = ElementLocatorType.XPath, locator = "id('nav')//li/span/span/a[contains(text(),'Administrar desktop')]")
private MenuItem MenuAdmDesktop;
@ElementMap(name = "Administrar Campo", locatorType = ElementLocatorType.XPath, locator = "id('nav')//li[span[span[a[contains(text(),'Administrar desktop')]]]]//li//a[contains(text(), 'Campo')]")
private Link lnkCampo;
}
onde o Config.java:
public class Config {
public final static String URLBASE = "http://10.200.175.222:8080/novodecisoesweblivre";
public final static String EXAMPLE_BASE = "src/test/resources/examples";
}
O robo está tentando executar o segundo passo e o primeiro ainda não foi feito pelo selenium...
Humm...
Alguma sugestão? Porque ele roda do firefox. No entanto eu preciso que rode no IE.
Teria de ter um passo que esperasse o page load antes de passar o controle para o segundo passo.
Acredito que seja comum em outros projetos. Tem algum padrão?
Este problema parece ser generalizado para Windows! Estamos verificando.
@aldokuzuo , confirme para mim se o problema também ocorre utilizando o driver do Internet Explorer localmente. Aguardo.
@juliancesar , na verdade o problema é utilizando o driver do IE localmente.
acabo de testar e aqui esta funcionando com as seguintes configurações:
Se não funcionar faça o seguinte procedimento:
1 - coloque seu projeto em modo debug criando um arquivo parecido com este exemplo: https://github.com/demoiselle/behave/blob/master/sample/treino/src/test/resources/log4j.xml 2 - rode o projeto 3 - nos envie o resultado do console pra análise
Na minha máquina não funcionou: Windows 7 Demoiselle Behave 1.3.0 (as superiores não convertem as estórias) IEDriverServer_Win32_2.33.0 Java 1.7.0
segue o log: 10:43:46,686 DEBUG (main) [PropertiesLoaderUtil]: open: /C:/BehaveDecisoes/NovoDecisoesDBehaveV3/target/test-classes/behave.properties 10:43:46,691 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-parser-jbehave/1.3.0/demoiselle-behave-parser-jbehave-1.3.0.jar!/behave.properties 10:43:46,700 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-core/1.3.0/demoiselle-behave-core-1.3.0.jar!/behave.properties 10:43:46,701 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-runner-webdriver/1.3.0/demoiselle-behave-runner-webdriver-1.3.0.jar!/behave.properties 10:43:46,704 INFO (main) [BehaveContext]: -------------------------------- 10:43:46,704 INFO (main) [BehaveContext]: Demoiselle Behave Iniciado 10:43:46,704 INFO (main) [BehaveContext]: -------------------------------- 10:43:46,705 DEBUG (main) [BehaveConfig]: ------- Propriedades ---------- 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.message.locale=pt 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.commonssteps.enabled=true 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.en=^(\s)(SCENARIO|Scenario|scenario):(.) 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.pt=^(\s)(CENÁRIO|Cenário|cenário):(.) 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.language=pt 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.en=^(\s)(GIVEN |WHEN |THEN |AND |BUT |Given |When |Then |And |But |given |when |then |and |but )(.) 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.pt=^(\s)(DADO |QUANDO |ENTÃO |E |MAS |Dado |Quando |Então |Mas |dado |quando |então |e |mas )(.) 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.converted=storyConverted 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.original=story 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.proxy.enabled=false; 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.proxy.url= 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.screen.driverPath=c:IEDriverServer.exe 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.screen.maxWait=50000 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.screen.minWait=500 10:43:46,705 DEBUG (main) [BehaveConfig]: behave.runner.screen.type=InternetExplorer 10:43:46,706 DEBUG (main) [BehaveConfig]: behave.version=1.3.0 em: 31/10/2013 09:35 10:43:46,706 DEBUG (main) [BehaveConfig]: load.level=2 10:43:46,706 DEBUG (main) [BehaveConfig]: ------------------------------- 10:43:46,869 INFO (main) [JBehaveParser]: Configurando Parser JBehave... 10:43:46,936 INFO (main) [JBehaveParser]: Iniciando Parser JBehave... 10:43:46,938 INFO (main) [JBehaveParser]: Executando história: [[stories\AdministrarCampo\Incluir2.storyConverted]] Processing system properties {} Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=true,verboseFailures=true,verboseFiltering=false,storyTimeoutInSecs=3600,threads=1]
(BeforeStories) 10:43:47,238 INFO (main) [BeforeAfterSteps]:
10:43:47,238 INFO (main) [BeforeAfterSteps]: >>Iniciando Aplicação<< Started InternetExplorerDriver server (32-bit) 2.33.0.0 Listening on port 15403 log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 10:43:51,777 DEBUG (main) [WebDriverRunner]: Driver [Internet Explorer] iniciado
Running story stories\AdministrarCampo\Incluir2.storyConverted
Funcionalidade: CN-AdministrarCamposAto-Incluir
(stories\AdministrarCampo\Incluir2.storyConverted)
Scenario: CT-AdministrarCamposAto-Incluir-SelecaoUnica-FP-C_Pessoal
Examples:
Dado que vou para a tela "Inicial"
Quando movo o mouse sobre "Administrar desktop"
E movo o mouse sobre "Administrar Campo"
Quando clico em "Administrar Campo"
Então será exibido "Listagem de Campos"
Dado que estou na tela "Listagem de Campos"
Quando clico em "Incluir Campo"
Então será exibido "Campo"
Quando informo "
|Nome|Descricao|TipoDeCampo|GrupoDeDados|Identificador|Mensagem| |Dbehave-SUnica-FP-C_Pessoall|Testes Unitários de Dbehave|Seleção Única|Dbehave-GrupoDeDados|123411|Campo salvo com sucesso|
Example: {Nome=Dbehave-SUnica-FP-C_Pessoall, Descricao=Testes Unitários de Dbehave, TipoDeCampo=Seleção Única, GrupoDeDados=Dbehave-GrupoDeDados, Identificador=123411, Mensagem=Campo salvo com sucesso} 10:43:52,104 DEBUG (pool-1-thread-1) [CommonSteps]: Go to screen Inicial Dado que vou para a tela "Inicial" 10:43:54,095 ERROR (pool-1-thread-1) [ScreenShootingMaker]: Erro ao salvar screenshot [] caminho [C:\BehaveDecisoes\NovoDecisoesDBehaveV3\target\jbehave/view/screenshots/failed-scenario-40b59c9b-8a3f-464d-a414-9288826d2daf.png] causa [Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 3 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}]] 10:43:54,095 ERROR (pool-1-thread-1) [ScreenShootingMaker]: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 3 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] Quando movo o mouse sobre "Administrar desktop" (FAILED) (br.gov.frameworkdemoiselle.behave.exception.BehaveException: Erro Inesperado, Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 13 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] . ) E movo o mouse sobre "Administrar Campo" (NOT PERFORMED) Quando clico em "Administrar Campo" (NOT PERFORMED) Então será exibido "Listagem de Campos" (NOT PERFORMED) Dado que estou na tela "Listagem de Campos" (NOT PERFORMED) Quando clico em "Incluir Campo" (NOT PERFORMED) Então será exibido "Campo" (NOT PERFORMED) Quando informo "Dbehave-SUnica-FP-C_Pessoall" no campo "Nome" (NOT PERFORMED) E informo "Testes Unitários de Dbehave" no campo "Descricao" (NOT PERFORMED) Quando clico em "TipoDeCampo" (NOT PERFORMED) E clico em "Selecao Unica" (NOT PERFORMED) Quando clico em "GrupoDeDados" (NOT PERFORMED) E clico em "Modelo" (NOT PERFORMED) Quando seleciono a opção "ConfiguracaoPessoal" (NOT PERFORMED) E informo "123411" no campo "Identificador" (NOT PERFORMED) Quando clico em "Salvar" (NOT PERFORMED) Então será exibido "Campo salvo com sucesso" (NOT PERFORMED)
Failed to run story stories\AdministrarCampo\Incluir2.storyConverted br.gov.frameworkdemoiselle.behave.exception.BehaveException: Erro Inesperado, Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 13 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] . at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.getElements(WebBase.java:133) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.verifyState(WebBase.java:190) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.waitElement(WebBase.java:209) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebMenuItem.mouseOver(WebMenuItem.java:53) at br.gov.frameworkdemoiselle.behave.parser.jbehave.CommonSteps.moverMouse(CommonSteps.java:283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jbehave.core.steps.StepCreator$ParameterisedStep.perform(StepCreator.java:550) at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499) at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479) at org.jbehave.core.embedder.StoryRunner.runScenarioSteps(StoryRunner.java:443) at org.jbehave.core.embedder.StoryRunner.runScenariosParametrisedByExamples(StoryRunner.java:412) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:301) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 13 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.defaultContent(RemoteWebDriver.java:838) at br.gov.frameworkdemoiselle.behave.runner.webdriver.util.SwitchDriver.bind(SwitchDriver.java:58) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.getElements(WebBase.java:104) ... 22 more
(AfterStories) 10:43:54,456 ERROR (main) [ScreenShootingMaker]: Erro ao salvar screenshot [] caminho [C:\BehaveDecisoes\NovoDecisoesDBehaveV3\target\jbehave/view/screenshots/failed-scenario-b40f450d-7ce0-4043-94e3-ecef5a3428e5.png] causa [Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 9 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}]] 10:43:54,457 ERROR (main) [ScreenShootingMaker]: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 9 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps.stopStories() (FAILED) (org.jbehave.core.failures.BeforeOrAfterFailed: Method stopStories (annotated with @AfterStories in class br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps) failed: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 30 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}])
Failed to run batch org.jbehave.core.embedder.StoryRunner$SomethingHappened@3af8f071: org.jbehave.core.failures.BeforeOrAfterFailed: Method stopStories (annotated with @AfterStories in class br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps) failed: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 30 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] at org.jbehave.core.steps.StepCreator$BeforeOrAfterStep.perform(StepCreator.java:460) at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499) at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479) at org.jbehave.core.embedder.StoryRunner.runBeforeOrAfterStories(StoryRunner.java:79) at org.jbehave.core.embedder.StoryManager.runBeforeOrAfterStories(StoryManager.java:91) at org.jbehave.core.embedder.StoryManager.runStories(StoryManager.java:86) at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:202) at br.gov.frameworkdemoiselle.behave.parser.jbehave.JBehaveParser.run(JBehaveParser.java:134) at br.gov.frameworkdemoiselle.behave.controller.BehaveContext.run(BehaveContext.java:126) at br.gov.frameworkdemoiselle.behave.controller.BehaveContext.run(BehaveContext.java:145) at br.gov.serpro.behave.NovoDecisoesDBehaveV3.tests.AdministrarCamposAtoTest.testIncluir(AdministrarCamposAtoTest.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 30 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_45' Session ID: 66c7e361-7f3e-435a-bcca-cfe6dd177b98 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569) at org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:418) at br.gov.frameworkdemoiselle.behave.runner.webdriver.WebDriverRunner.close(WebDriverRunner.java:180) at br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps.stopStories(BeforeAfterSteps.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jbehave.core.steps.StepCreator$MethodInvoker.invoke(StepCreator.java:671) at org.jbehave.core.steps.StepCreator$BeforeOrAfterStep.perform(StepCreator.java:458) ... 33 more
Generating reports view to 'C:\BehaveDecisoes\NovoDecisoesDBehaveV3\target\jbehave' using formats '[defaultstoryreport, console, html, stats]' and view properties '{defaultFormats=stats, decorateNonHtml=true, viewDirectory=view, decorated=ftl/jbehave-report-decorated.ftl, reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, nonDecorated=ftl/jbehave-report-non-decorated.ftl}' Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending) Failures in reports view: 0 scenarios failed 10:43:55,232 INFO (main) [JBehaveParser]: Finalizando Parser JBehave... 10:43:55,232 INFO (main) [BehaveContext]: -------------------------------- 10:43:55,232 INFO (main) [BehaveContext]: Demoiselle Behave Finalizado 10:43:55,232 INFO (main) [BehaveContext]: --------------------------------
Vamos por partes! Preciso que vc utilize a última versão snapshot (1.3.2-SNAPSHOT), esta versão é de 31/10/2013 e foram corrigidos problemas relacionados a utilização no windows. Vamos descobrir o motivo de não estar funcionando nas versões mais novas.
Ok.
Segue o log:
Windows 7 Demoiselle Behave 1.3.2-SNAPSHOT IEDriverServer_Win32_2.33.0 Java 1.7.0
11:08:12,357 DEBUG (main) [PropertiesLoaderUtil]: open: /C:/BehaveDecisoes/NovoDecisoesDBehaveV3/target/test-classes/behave.properties 11:08:12,394 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-parser-jbehave/1.3.2-SNAPSHOT/demoiselle-behave-parser-jbehave-1.3.2-SNAPSHOT.jar!/behave.properties 11:08:12,395 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-core/1.3.2-SNAPSHOT/demoiselle-behave-core-1.3.2-SNAPSHOT.jar!/behave.properties 11:08:12,395 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/61501093215/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-runner-webdriver/1.3.2-SNAPSHOT/demoiselle-behave-runner-webdriver-1.3.2-SNAPSHOT.jar!/behave.properties 11:08:12,398 INFO (main) [BehaveContext]: -------------------------------- 11:08:12,399 INFO (main) [BehaveContext]: Demoiselle Behave Iniciado 11:08:12,399 INFO (main) [BehaveContext]: -------------------------------- 11:08:12,399 DEBUG (main) [BehaveConfig]: ------- Propriedades ---------- 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.message.locale=pt 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.commonssteps.enabled=true 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.en=^(\s)(SCENARIO|Scenario|scenario):(.) 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.pt=^(\s)(CENÁRIO|Cenário|cenário):(.) 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.language=pt 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.en=^(\s)(GIVEN |WHEN |THEN |AND |BUT |Given |When |Then |And |But |given |when |then |and |but )(.) 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.pt=^(\s)(DADO |QUANDO |ENTÃO |E |MAS |Dado |Quando |Então |Mas |dado |quando |então |e |mas )(.) 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.converted=storyConverted 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.original=story 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.catchUIException=org.openqa.selenium.StaleElementReferenceException 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.proxy.enabled=false; 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.proxy.url= 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.screen.driverPath=c:IEDriverServer.exe 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.screen.maxWait=50000 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.screen.minWait=500 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.runner.screen.type=InternetExplorer 11:08:12,399 DEBUG (main) [BehaveConfig]: behave.version=1.3.2-SNAPSHOT em: 17/02/2014 13:56 11:08:12,399 DEBUG (main) [BehaveConfig]: load.level=2 11:08:12,399 DEBUG (main) [BehaveConfig]: ------------------------------- 11:08:12,647 INFO (main) [JBehaveParser]: Configurando Parser JBehave... 11:08:12,750 INFO (main) [JBehaveParser]: Iniciando Parser JBehave... 11:08:12,752 INFO (main) [JBehaveParser]: Executando história: [[]] Processing system properties {} Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=true,verboseFailures=true,verboseFiltering=false,storyTimeoutInSecs=3600,threads=1]
(BeforeStories) 11:08:13,681 INFO (main) [BeforeAfterSteps]:
11:08:13,681 INFO (main) [BeforeAfterSteps]: >>Iniciando Aplicação<< Started InternetExplorerDriver server (32-bit) 2.33.0.0 Listening on port 7974 log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 11:08:28,548 DEBUG (main) [WebDriverRunner]: Driver [Internet Explorer] iniciado
(AfterStories) 11:08:30,033 INFO (main) [BeforeAfterSteps]: >>Finalizando Aplicação<<
Generating reports view to 'C:\BehaveDecisoes\NovoDecisoesDBehaveV3\target\jbehave' using formats '[defaultstoryreport, console, html, stats]' and view properties '{defaultFormats=stats, decorateNonHtml=true, viewDirectory=view, decorated=ftl/jbehave-report-decorated.ftl, reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, nonDecorated=ftl/jbehave-report-non-decorated.ftl}' Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending) 11:08:30,657 INFO (main) [JBehaveParser]: Finalizando Parser JBehave... 11:08:30,657 INFO (main) [BehaveContext]: -------------------------------- 11:08:30,657 INFO (main) [BehaveContext]: Demoiselle Behave Finalizado 11:08:30,657 INFO (main) [BehaveContext]: --------------------------------
Windows 7 64 bits Demoiselle Behave 1.3.2-SNAPSHOT IEDriverServer_Win32_2.40.0 ou IEDriverServer_Win64_2.40.0 IE 11 Java 1.7.0
00:07:21,916 DEBUG (main) [PropertiesLoaderUtil]: open: /C:/Users/Rogerio/workspace/testes/target/test-classes/behave.properties 00:07:21,922 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/Rogerio/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-parser-jbehave/1.3.2-SNAPSHOT/demoiselle-behave-parser-jbehave-1.3.2-SNAPSHOT.jar!/behave.properties 00:07:21,923 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/Rogerio/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-core/1.3.2-SNAPSHOT/demoiselle-behave-core-1.3.2-SNAPSHOT.jar!/behave.properties 00:07:21,927 DEBUG (main) [PropertiesLoaderUtil]: open: file:/C:/Users/Rogerio/.m2/repository/br/gov/frameworkdemoiselle/component/behave/demoiselle-behave-runner-webdriver/1.3.2-SNAPSHOT/demoiselle-behave-runner-webdriver-1.3.2-SNAPSHOT.jar!/behave.properties 00:07:21,985 INFO (main) [BehaveContext]: -------------------------------- 00:07:21,986 INFO (main) [BehaveContext]: Demoiselle Behave Iniciado 00:07:21,986 INFO (main) [BehaveContext]: -------------------------------- 00:07:21,986 DEBUG (main) [BehaveConfig]: ------- Propriedades ---------- 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.message.locale=pt 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.commonssteps.enabled=true 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.en=^(\s)(SCENARIO|Scenario|scenario):(.) 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.identification.scenario.pattern.pt=^(\s)(CENÁRIO|Cenário|cenário):(.) 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.language=pt 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.en=^(\s)(GIVEN |WHEN |THEN |AND |BUT |Given |When |Then |And |But |given |when |then |and |but )(.) 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.prefixes.bdd.pattern.pt=^(\s)(DADO |QUANDO |ENTÃO |E |MAS |Dado |Quando |Então |Mas |dado |quando |então |e |mas )(.) 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.converted=storyConverted 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.parser.story.extension.original=story 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.runner.catchUIException=org.openqa.selenium.StaleElementReferenceException 00:07:21,987 DEBUG (main) [BehaveConfig]: behave.runner.proxy.enabled=false; 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.runner.proxy.url= 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.runner.screen.driverPath=C:\IEDriverServer.exe 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.runner.screen.maxWait=10000 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.runner.screen.minWait=100 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.runner.screen.type=InternetExplorer 00:07:21,988 DEBUG (main) [BehaveConfig]: behave.version=1.3.2-SNAPSHOT em: 17/02/2014 13:56 00:07:21,988 DEBUG (main) [BehaveConfig]: load.level=2 00:07:21,988 DEBUG (main) [BehaveConfig]: ------------------------------- 00:07:22,235 INFO (main) [JBehaveParser]: Configurando Parser JBehave... 00:07:22,276 INFO (main) [JBehaveParser]: Iniciando Parser JBehave... 00:07:22,278 INFO (main) [JBehaveParser]: Executando história: [[stories\search.storyConverted]] Processing system properties {} Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=true,verboseFailures=true,verboseFiltering=false,storyTimeoutInSecs=3600,threads=1]
(BeforeStories) 00:07:22,694 INFO (main) [BeforeAfterSteps]:
00:07:22,694 INFO (main) [BeforeAfterSteps]: >>Iniciando Aplicação<< Started InternetExplorerDriver server (32-bit) 2.40.0.0 Listening on port 33577 log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 00:07:36,648 DEBUG (main) [WebDriverRunner]: Driver [Internet Explorer] iniciado
Running story stories\search.storyConverted Funcionalidade: Acesso (stories\search.storyConverted) Narrative: In order to a tela inicial apareceça para mim As a visitante I want to acessar o Google Scenario: Acesso ao Google 00:07:36,916 DEBUG (pool-1-thread-1) [CommonSteps]: Go to screen Tela de Busca Dado que vou para a tela "Tela de Busca" 00:07:37,809 ERROR (pool-1-thread-1) [ScreenShootingMaker]: Erro ao salvar screenshot [] caminho [C:\Users\Rogerio\workspace\testes\target\jbehave/view/screenshots/failed-scenario-fbdd3f09-98ea-4d4e-9743-2df1974ad8e0.png] causa [Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 23 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]] 00:07:37,811 ERROR (pool-1-thread-1) [ScreenShootingMaker]: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 23 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] Então será exibido "Google" (FAILED) (java.lang.reflect.UndeclaredThrowableException)
Scenario: Pesquisa Simples 00:07:38,128 DEBUG (pool-1-thread-1) [CommonSteps]: Go to screen Tela de Busca 00:07:38,294 ERROR (pool-1-thread-1) [ScreenShootingMaker]: Erro ao salvar screenshot [] caminho [C:\Users\Rogerio\workspace\testes\target\jbehave/view/screenshots/failed-scenario-deb20450-97cc-4a5e-aed6-f7ecf3929e42.png] causa [Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 11 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]] 00:07:38,294 ERROR (pool-1-thread-1) [ScreenShootingMaker]: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 11 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] Dado que vou para a tela "Tela de Busca" (FAILED) (br.gov.frameworkdemoiselle.behave.exception.BehaveException: Erro ao tentar navegar para [http://www.google.com.br]) Quando informo "Demoiselle Behave" no campo "Campo de Busca" (NOT PERFORMED) Então será exibido "https://github.com/demoiselle/behave" (NOT PERFORMED)
Failed to run story stories\search.storyConverted java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy12.waitText(Unknown Source) at br.gov.frameworkdemoiselle.behave.parser.jbehave.CommonSteps.textVisible(CommonSteps.java:243) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jbehave.core.steps.StepCreator$ParameterisedStep.perform(StepCreator.java:550) at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499) at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479) at org.jbehave.core.embedder.StoryRunner.runScenarioSteps(StoryRunner.java:443) at org.jbehave.core.embedder.StoryRunner.runCancellable(StoryRunner.java:305) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:219) at org.jbehave.core.embedder.StoryRunner.run(StoryRunner.java:180) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:229) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:201) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at br.gov.frameworkdemoiselle.behave.internal.ui.UIProxy.invoke(UIProxy.java:35) ... 19 more Caused by: br.gov.frameworkdemoiselle.behave.exception.BehaveException: Erro Inesperado, Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 35 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.waitText(WebBase.java:328) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.waitText(WebBase.java:287) ... 24 more Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 35 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.defaultContent(RemoteWebDriver.java:838) at br.gov.frameworkdemoiselle.behave.runner.webdriver.util.SwitchDriver$Node.switchDriver(SwitchDriver.java:122) at br.gov.frameworkdemoiselle.behave.runner.webdriver.util.SwitchDriver.switchNextFrame(SwitchDriver.java:69) at br.gov.frameworkdemoiselle.behave.runner.webdriver.ui.WebBase.waitText(WebBase.java:305) ... 25 more
(AfterStories) 00:07:38,730 ERROR (main) [ScreenShootingMaker]: Erro ao salvar screenshot [] caminho [C:\Users\Rogerio\workspace\testes\target\jbehave/view/screenshots/failed-scenario-9794689b-7fcb-47e1-9bb0-df891e8676c7.png] causa [Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]] 00:07:38,731 ERROR (main) [ScreenShootingMaker]: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps.stopStories() (FAILED) (org.jbehave.core.failures.BeforeOrAfterFailed: Method stopStories (annotated with @AfterStories in class br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps) failed: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}])
Failed to run batch org.jbehave.core.embedder.StoryRunner$SomethingHappened@113e655a: org.jbehave.core.failures.BeforeOrAfterFailed: Method stopStories (annotated with @AfterStories in class br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps) failed: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] at org.jbehave.core.steps.StepCreator$BeforeOrAfterStep.perform(StepCreator.java:460) at org.jbehave.core.embedder.StoryRunner$FineSoFar.run(StoryRunner.java:499) at org.jbehave.core.embedder.StoryRunner.runStepsWhileKeepingState(StoryRunner.java:479) at org.jbehave.core.embedder.StoryRunner.runBeforeOrAfterStories(StoryRunner.java:79) at org.jbehave.core.embedder.StoryManager.runBeforeOrAfterStories(StoryManager.java:91) at org.jbehave.core.embedder.StoryManager.runStories(StoryManager.java:86) at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:202) at br.gov.frameworkdemoiselle.behave.parser.jbehave.JBehaveParser.run(JBehaveParser.java:134) at br.gov.frameworkdemoiselle.behave.controller.BehaveContext.run(BehaveContext.java:123) at br.gov.frameworkdemoiselle.behave.controller.BehaveContext.run(BehaveContext.java:143) at br.gov.serpro.testes.MyTest.testAllStories(MyTest.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 18 milliseconds Build info: version: '2.37.1', revision: 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-21 09:08:07' System info: host: 'Rogerio-PC', ip: '192.168.146.103', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Session ID: 940be6ec-bd36-4001-bdc7-89baccd9eae9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:33577/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569) at org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:418) at br.gov.frameworkdemoiselle.behave.runner.webdriver.WebDriverRunner.close(WebDriverRunner.java:166) at br.gov.frameworkdemoiselle.behave.parser.jbehave.BeforeAfterSteps.stopStories(BeforeAfterSteps.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jbehave.core.steps.StepCreator$MethodInvoker.invoke(StepCreator.java:671) at org.jbehave.core.steps.StepCreator$BeforeOrAfterStep.perform(StepCreator.java:458) ... 33 more
Generating reports view to 'C:\Users\Rogerio\workspace\testes\target\jbehave' using formats '[defaultstoryreport, console, html, stats]' and view properties '{defaultFormats=stats, decorateNonHtml=true, viewDirectory=view, decorated=ftl/jbehave-report-decorated.ftl, reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, nonDecorated=ftl/jbehave-report-non-decorated.ftl}' Reports view generated with 0 stories (of which 0 pending) containing 0 scenarios (of which 0 pending) Failures in reports view: 0 scenarios failed 00:07:39,802 INFO (main) [JBehaveParser]: Finalizando Parser JBehave... 00:07:39,802 INFO (main) [BehaveContext]: -------------------------------- 00:07:39,803 INFO (main) [BehaveContext]: Demoiselle Behave Finalizado 00:07:39,803 INFO (main) [BehaveContext]: --------------------------------
Historia: Funcionalidade: Acesso
Narrativa: Para obter a tela inicial apareceça para mim Como um visitante Desejo acessar o Google
Cenário: Acesso ao Google
Dado que vou para a tela "Tela de Busca" Então será exibido "Google"
Cenário: Pesquisa Simples
Dado que vou para a tela "Tela de Busca" Quando informo "Demoiselle Behave" no campo "Campo de Busca" Então será exibido "https://github.com/demoiselle/behave"
O navegador abre, mas antes da página carregar, o robô já está no passo "Então será exibido "Google""
@aldokuzuo , o seu problema foi resolvido no último contato? @rogernobre , vamos verificar se o problema do @aldokuzuo foi resolvido, assim que tivermos um posicionamento podemos verificar a sua situação.
@juliancesar, o meu problema foi resolvido em partes. Depois que vc sugeriu a barra invertida no eng.run("\stories\, o sistema rodou a página inicial. No entanto quando passa pela estória "Quando movo o mouse sobre...." Ele não faz nada.
@aldokuzuo , com relação a este problema já tivemos algo exatamente igual e não encontramos solução na issue #97 ! Veja se você consegue avançar, talvez o @rogernobre posso ajudar.
Pessoal, eu só consegui rodar a versão 1.3.0 do pom.xml para rodar no Windows. As versões recentes não conseguem rodar as histórias.
Outra ajuda que gostaria é como faço para rodar no IE. Estou usando o IEDriverServer_Win32_2.40.0.zip. Nesse caso acho que é BO meu mesmo. Não entendi como faço para rodar. Tem algum passo a passo?
Essa mensagem que aparece no navegador do IE: This is the initial start page for the WebDriver server.