qmetry / qaf-blank-project-gradle Goto Github PK
View Code? Open in Web Editor NEWautomation project skeleton using Gradle to start with
License: GNU General Public License v3.0
automation project skeleton using Gradle to start with
License: GNU General Public License v3.0
Revision: 316546a5fcb4e2dfe1d6aa0b73a4e09e8cecb5a5
Groovy: 2.4.11
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Mac OS X 10.13.4 x86_64
Java works fine. But when trying to run BDD it is not looking into project root instead of looking into different base dir, result into following error. it loads properties properly but not working other directories including test-results!
Working Directory: /Users/chirag/git/qaf-blank-project-gradle
Gradle User Home: /Users/chirag/.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 2.13
Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
JVM Arguments: None
Program Arguments: None
Gradle Tasks: test
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
Gradle Test Executor 1 STANDARD_OUT
include groups []
exclude groups: [] Scanarios location: scenarios
Gradle Test Executor 1 STANDARD_ERROR
com.qmetry.qaf.automation.core.AutomationError: Exception while reading BDD file: /Applications/eclipse/java-neon/Eclipse.app/Contents/MacOS/scenarios/suite1.bdd#0
at com.qmetry.qaf.automation.step.client.text.BDDFileParser.parseFile(BDDFileParser.java:153)
at com.qmetry.qaf.automation.step.client.AbstractScenarioFileParser.parse(AbstractScenarioFileParser.java:76)
at com.qmetry.qaf.automation.step.client.ScenarioFactory.process(ScenarioFactory.java:102)
at com.qmetry.qaf.automation.step.client.ScenarioFactory.getTestsFromFile(ScenarioFactory.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.FactoryMethod.invoke(FactoryMethod.java:89)
at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:153)
at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:40)
at org.testng.TestRunner.initMethods(TestRunner.java:431)
at org.testng.TestRunner.init(TestRunner.java:277)
at org.testng.TestRunner.init(TestRunner.java:247)
at org.testng.TestRunner.<init>(TestRunner.java:188)
at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:585)
at org.testng.SuiteRunner.init(SuiteRunner.java:189)
at org.testng.SuiteRunner.<init>(SuiteRunner.java:136)
at org.testng.TestNG.createSuiteRunner(TestNG.java:1375)
at org.testng.TestNG.createSuiteRunners(TestNG.java:1355)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1209)
at org.testng.TestNG.runSuites(TestNG.java:1133)
at org.testng.TestNG.run(TestNG.java:1104)
at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:133)
at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:83)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:364)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: /Applications/eclipse/java-neon/Eclipse.app/Contents/MacOS/scenarios/suite1.bdd (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileReader.<init>(FileReader.java:72)
at com.qmetry.qaf.automation.step.client.text.BDDFileParser.parseFile(BDDFileParser.java:70)
... 47 more
QAF Demo STANDARD_ERROR
Unable to write : com.qmetry.qaf.automation.testng.report.Report in file: test-results/13_Apr_2018_02_00_PM/json/meta-info.json :Directory 'test-results/13_Apr_2018_02_00_PM/json' could not be created
Unable to write : com.qmetry.qaf.automation.testng.report.TestOverview in file: test-results/13_Apr_2018_02_00_PM/json/BDDTest/overview.json :test-results/13_Apr_2018_02_00_PM/json/BDDTest/overview.json (No such file or directory)
QAF Demo > java Test > com.qmetry.qaf.example.test.SampleTest.testGoogleSearch STANDARD_ERROR
Starting ChromeDriver 2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85) on port 42809
Only local connections are allowed.
BUILD SUCCESSFUL
Total time: 11.288 secs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.