Coder Social home page Coder Social logo

frameworkopenbdt / archetype-web Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 1.0 11.19 MB

Archetype para a criação de um novo projeto contendo um breve exemplo.

License: GNU General Public License v3.0

Java 1.29% Gherkin 0.20% CSS 13.39% JavaScript 84.17% FreeMarker 0.95%
archetype web-automation openbdt-framework java serenity cucumber

archetype-web's Introduction

Archetype for Web Testing Projects

An archetype has the purpose to create projects based on its definitions in the most possible easy way. Starting creating your project following these instructions bellow.

Installing the archetype

To generate projects using this archetype, you must install it before. After cloning this repository, inside its folder, type the command

    mvn install

Generating a project:

    mvn archetype:generate -DarchetypeCatalog=local
  • Will be asked for a number that represents the archetype already installed (it may appear at the bottom of the console). After that, you have to insert the groupId, artifactId and version (respectively) of the project to be created.

Running the sample test:

Inside the project folder that you already created, the file thucydides.properties has some attributes that must be changed before running the test.

  • Set the webdriver.chrome.driver to the chrome driver location
  • Set where serenity-bdd report will be saved changing the serenity.outputDirectory value to a folder location in your local file system (may not exist).

After setting the properties above, you can run the test already defined in the project. Inside the project folder type the command

    mvn verify

end the test should be started.

archetype-web's People

Contributors

gifflet avatar openbdt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

adailton1975

archetype-web's Issues

Erro após a importação do projeto no eclipse

Como a wiki do linux ainda está em construção utilizei como base o do windows para realizar a instalação no linux.

Durante o processo, tudo ocorreu como esperado, porém, ao importar o projeto criado para o eclipse, ele aponta o seguinte erro , que impede o Build do projeto o qual impediu a ultima etapa, que seria a execução do primeiro teste automatizado:

image

Dei uma pesquisada, aparentemente este arquivo chamado jruby-complete-1.7.26 está corrompido.

Erro ao tentar executar a automação exemplo

@org.junit.runner.RunWith(value=class net.serenitybdd.cucumber.CucumberWithSerenity)
@cucumber.api.CucumberOptions(features=[src/test/resources/bdd/features], junit=[], dryRun=false, plugin=[], glue=[br.com.edglobo.globocore.steps.definition], snippets=UNDERSCORE, name=[], format=[], monochrome=true, strict=false, tags=[])
@org.springframework.stereotype.Component(value=)
@org.springframework.beans.factory.annotation.Qualifier(value=webSetup)
15:40:22 INFO [RunListenerJunit ] ------------------------------------------------------------------------------------------------------------------------------------------------
OOOOOOOOO BBBBBBBBBBBBBBBBB DDDDDDDDDDDDD TTTTTTTTTTTTTTTTTTTTTTT
OO:::::::::OO B::::::::::::::::B D::::::::::::DDD T:::::::::::::::::::::T
OO:::::::::::::OO B::::::BBBBBB:::::B D:::::::::::::::DD T:::::::::::::::::::::T
O:::::::OOO:::::::O BB:::::B B:::::BDDD:::::DDDDD:::::D T:::::TT:::::::TT:::::T
O::::::O O::::::Oppppp ppppppppp eeeeeeeeeeee nnnn nnnnnnnn B::::B B:::::B D:::::D D:::::D TTTTTT T:::::T TTTTTT
O:::::O O:::::Op::::ppp:::::::::p ee::::::::::::ee n:::nn::::::::nn B::::B B:::::B D:::::D D:::::D T:::::T
O:::::O O:::::Op:::::::::::::::::p e::::::eeeee:::::een::::::::::::::nn B::::BBBBBB:::::B D:::::D D:::::D T:::::T
O:::::O O:::::Opp::::::ppppp::::::pe::::::e e:::::enn:::::::::::::::n B:::::::::::::BB D:::::D D:::::D T:::::T
O:::::O O:::::O p:::::p p:::::pe:::::::eeeee::::::e n:::::nnnn:::::n B::::BBBBBB:::::B D:::::D D:::::D T:::::T
O:::::O O:::::O p:::::p p:::::pe:::::::::::::::::e n::::n n::::n B::::B B:::::B D:::::D D:::::D T:::::T
O:::::O O:::::O p:::::p p:::::pe::::::eeeeeeeeeee n::::n n::::n B::::B B:::::B D:::::D D:::::D T:::::T
O::::::O O::::::O p:::::p p::::::pe:::::::e n::::n n::::n B::::B B:::::B D:::::D D:::::D T:::::T
O:::::::OOO:::::::O p:::::ppppp:::::::pe::::::::e n::::n n::::nBB:::::BBBBBB::::::BDDD:::::DDDDD:::::D TT:::::::TT
OO:::::::::::::OO p::::::::::::::::p e::::::::eeeeeeee n::::n n::::nB:::::::::::::::::B D:::::::::::::::DD T:::::::::T
OO:::::::::OO p::::::::::::::pp ee:::::::::::::e n::::n n::::nB::::::::::::::::B D::::::::::::DDD T:::::::::T
OOOOOOOOO p::::::pppppppp eeeeeeeeeeeeee nnnnnn nnnnnnBBBBBBBBBBBBBBBBB DDDDDDDDDDDDD TTTTTTTTTTT
p:::::p
p:::::p
p:::::::p
p:::::::p
p:::::::p
ppppppppp

15:40:22 INFO [RunListenerJunit ] test run started: null
15:40:22 INFO [RunListenerJunit ] test started: initializationError(br.com.edglobo.globocore.setup.WebSetupImpl)
15:40:22 INFO [RunListenerJunit ] test Failure: initializationError(br.com.edglobo.globocore.setup.WebSetupImpl): Illegal char <|> at index 33: bdd/report/output/folder[relative|absolute]
15:40:22 INFO [RunListenerJunit ] test finished: initializationError(br.com.edglobo.globocore.setup.WebSetupImpl)
15:40:22 INFO [RunListenerJunit ] test run finished: org.junit.runner.Result@4bee18dc
Exception: java.nio.file.InvalidPathException: Illegal char <|> at index 33: bdd/report/output/folder[relative|absolute]
Message: Illegal char <|> at index 33: bdd/report/output/folder[relative|absolute]
Trace: java.nio.file.InvalidPathException: Illegal char <|> at index 33: bdd/report/output/folder[relative|absolute]
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPath.parse(Unknown Source)
at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
at java.nio.file.Paths.get(Unknown Source)
at net.thucydides.core.configuration.MavenOrGradleBuildPath.isAbsolute(MavenOrGradleBuildPath.java:55)
at net.thucydides.core.configuration.MavenOrGradleBuildPath.getBuildDirectory(MavenOrGradleBuildPath.java:34)
at net.thucydides.core.configuration.SystemPropertiesConfiguration.loadOutputDirectoryFromSystemProperties(SystemPropertiesConfiguration.java:97)
at net.thucydides.core.configuration.SystemPropertiesConfiguration.getOutputDirectory(SystemPropertiesConfiguration.java:174)
at net.serenitybdd.core.SerenityListeners.(SerenityListeners.java:29)
at cucumber.runtime.formatter.SerenityReporter.initialiseThucydidesListenersFor(SerenityReporter.java:107)
at cucumber.runtime.formatter.SerenityReporter.handleTestSourceRead(SerenityReporter.java:154)
at cucumber.runtime.formatter.SerenityReporter.lambda$new$0(SerenityReporter.java:111)
at cucumber.runner.EventBus.send(EventBus.java:28)
at cucumber.runtime.model.CucumberFeature.sendTestSourceRead(CucumberFeature.java:132)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:315)
at cucumber.api.junit.Cucumber.(Cucumber.java:80)
at net.serenitybdd.cucumber.CucumberWithSerenity.(CucumberWithSerenity.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runner.Computer.getRunner(Computer.java:40)
at org.junit.runner.Computer$1.runnerForClass(Computer.java:31)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)
at org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)
at org.junit.runners.Suite.(Suite.java:81)
at org.junit.runner.Computer.getSuite(Computer.java:28)
at org.junit.runner.Request.classes(Request.java:75)
at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
at io.openbdt.run.SuiteTestRunner.runWithJunit(SuiteTestRunner.java:21)
at br.com.edglobo.globocore.runner.RunnerTest.test(RunnerTest.java:33)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:254)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)

15:40:22 INFO [WebBrowserScreenElement] closing current driver

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.