Discussion:
[Cucumber] While runnin the step defination i am getting below error
(too old to reply)
hiren moghe
2017-09-12 09:23:59 UTC
Permalink
Raw Message
"C:\Program Files\Java\jdk1.8.0_111\bin\java"
-Dorg.jetbrains.run.directory=C:\Projects\Cucumber\src\test\resources\features
-Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files
(x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.6\bin"
-Dfile.encoding=UTF-8 -classpath "C:\Program
Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\deploy.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\access-bridge-64.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\cldrdata.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\dnsns.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\jaccess.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\jfxrt.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\localedata.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\nashorn.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunec.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunjce_provider.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunmscapi.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunpkcs11.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\zipfs.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\javaws.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jfxswt.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\management-agent.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\plugin.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\rt.jar;C:\Projects\Cucumber\target\test-classes;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-core\1.2.5\cucumber-core-1.2.5.jar;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-html\0.2.3\cucumber-html-0.2.3.jar;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-jvm-deps\1.0.5\cucumber-jvm-deps-1.0.5.jar;C:\Users\MogheH\.m2\repository\info\cukes\gherkin\2.12.2\gherkin-2.12.2.jar;C:\Users\MogheH\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\MogheH\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\MogheH\.m2\repository\org\codeartisans\org.json\20161124\org.json-20161124.jar;C:\Users\MogheH\.m2\repository\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;C:\Users\MogheH\.m2\repository\org\apache\jmeter\ApacheJMeter_junit\3.0\ApacheJMeter_junit-3.0.jar;C:\Users\MogheH\.m2\repository\org\apache\jmeter\jorphan\3.0\jorphan-3.0.jar;C:\Users\MogheH\.m2\repository\org\apache\jmeter\ApacheJMeter_core\3.0\ApacheJMeter_core-3.0.jar;C:\Users\MogheH\.m2\repository\org\ow2\asm\asm\5.1\asm-5.1.jar;C:\Users\MogheH\.m2\repository\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;C:\Users\MogheH\.m2\repository\bsf\bsf\2.4.0\bsf-2.4.0.jar;C:\Users\MogheH\.m2\repository\avalon-framework\avalon-framework\4.1.4\avalon-framework-4.1.4.jar;C:\Users\MogheH\.m2\repository\org\beanshell\bsh\2.0b5\bsh-2.0b5.jar;C:\Users\MogheH\.m2\repository\org\bouncycastle\bcmail-jdk15on\1.49\bcmail-jdk15on-1.49.jar;C:\Users\MogheH\.m2\repository\org\bouncycastle\bcprov-jdk15on\1.49\bcprov-jdk15on-1.49.jar;C:\Users\MogheH\.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.49\bcpkix-jdk15on-1.49.jar;C:\Users\MogheH\.m2\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-dbcp2\2.1.1\commons-dbcp2-2.1.1.jar;C:\Users\MogheH\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;C:\Users\MogheH\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\MogheH\.m2\repository\commons-jexl\commons-jexl\1.1\commons-jexl-1.1.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-jexl\2.1.1\commons-jexl-2.1.1.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-jexl3\3.0\commons-jexl3-3.0.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;C:\Users\MogheH\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\MogheH\.m2\repository\commons-net\commons-net\3.4\commons-net-3.4.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;C:\Users\MogheH\.m2\repository\dnsjava\dnsjava\2.1.7\dnsjava-2.1.7.jar;C:\Users\MogheH\.m2\repository\excalibur-logger\excalibur-logger\1.1\excalibur-logger-1.1.jar;C:\Users\MogheH\.m2\repository\org\codehaus\groovy\groovy-all\2.4.6\groovy-all-2.4.6.jar;C:\Users\MogheH\.m2\repository\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;C:\Users\MogheH\.m2\repository\org\apache\httpcomponents\httpmime\4.5.2\httpmime-4.5.2.jar;C:\Users\MogheH\.m2\repository\org\apache\httpcomponents\httpcore\4.4.4\httpcore-4.4.4.jar;C:\Users\MogheH\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar;C:\Users\MogheH\.m2\repository\jcharts\jcharts\0.7.5\jcharts-0.7.5.jar;C:\Users\MogheH\.m2\repository\org\mozilla\rhino\1.7.7.1\rhino-1.7.7.1.jar;C:\Users\MogheH\.m2\repository\logkit\logkit\2.0\logkit-2.0.jar;C:\Users\MogheH\.m2\repository\net\sf\jtidy\jtidy\r938\jtidy-r938.jar;C:\Users\MogheH\.m2\repository\org\apache\tika\tika-core\1.12\tika-core-1.12.jar;C:\Users\MogheH\.m2\repository\org\apache\tika\tika-parsers\1.12\tika-parsers-1.12.jar;C:\Users\MogheH\.m2\repository\org\gagravarr\vorbis-java-tika\0.6\vorbis-java-tika-0.6.jar;C:\Users\MogheH\.m2\repository\com\healthmarketscience\jackcess\jackcess\2.1.2\jackcess-2.1.2.jar;C:\Users\MogheH\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\MogheH\.m2\repository\com\healthmarketscience\jackcess\jackcess-encrypt\2.1.1\jackcess-encrypt-2.1.1.jar;C:\Users\MogheH\.m2\repository\net\sourceforge\jmatio\jmatio\1.0\jmatio-1.0.jar;C:\Users\MogheH\.m2\repository\org\apache\james\apache-mime4j-core\0.7.2\apache-mime4j-core-0.7.2.jar;C:\Users\MogheH\.m2\repository\org\apache\james\apache-mime4j-dom\0.7.2\apache-mime4j-dom-0.7.2.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-compress\1.10\commons-compress-1.10.jar;C:\Users\MogheH\.m2\repository\org\tukaani\xz\1.5\xz-1.5.jar;C:\Users\MogheH\.m2\repository\org\apache\pdfbox\pdfbox\1.8.10\pdfbox-1.8.10.jar;C:\Users\MogheH\.m2\repository\org\apache\pdfbox\fontbox\1.8.10\fontbox-1.8.10.jar;C:\Users\MogheH\.m2\repository\org\apache\pdfbox\jempbox\1.8.10\jempbox-1.8.10.jar;C:\Users\MogheH\.m2\repository\org\apache\poi\poi\3.13\poi-3.13.jar;C:\Users\MogheH\.m2\repository\org\apache\poi\poi-scratchpad\3.13\poi-scratchpad-3.13.jar;C:\Users\MogheH\.m2\repository\org\apache\poi\poi-ooxml\3.13\poi-ooxml-3.13.jar;C:\Users\MogheH\.m2\repository\org\apache\poi\poi-ooxml-schemas\3.13\poi-ooxml-schemas-3.13.jar;C:\Users\MogheH\.m2\repository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;C:\Users\MogheH\.m2\repository\org\ccil\cowan\tagsoup\tagsoup\1.2.1\tagsoup-1.2.1.jar;C:\Users\MogheH\.m2\repository\com\googlecode\mp4parser\isoparser\1.0.2\isoparser-1.0.2.jar;C:\Users\MogheH\.m2\repository\org\aspectj\aspectjrt\1.8.0\aspectjrt-1.8.0.jar;C:\Users\MogheH\.m2\repository\com\drewnoakes\metadata-extractor\2.8.0\metadata-extractor-2.8.0.jar;C:\Users\MogheH\.m2\repository\com\adobe\xmp\xmpcore\5.1.2\xmpcore-5.1.2.jar;C:\Users\MogheH\.m2\repository\de\l3s\boilerpipe\boilerpipe\1.1.0\boilerpipe-1.1.0.jar;C:\Users\MogheH\.m2\repository\com\rometools\rome\1.5.1\rome-1.5.1.jar;C:\Users\MogheH\.m2\repository\com\rometools\rome-utils\1.5.1\rome-utils-1.5.1.jar;C:\Users\MogheH\.m2\repository\org\jdom\jdom\2.0.2\jdom-2.0.2.jar;C:\Users\MogheH\.m2\repository\org\gagravarr\vorbis-java-core\0.6\vorbis-java-core-0.6.jar;C:\Users\MogheH\.m2\repository\com\googlecode\juniversalchardet\juniversalchardet\1.0.3\juniversalchardet-1.0.3.jar;C:\Users\MogheH\.m2\repository\org\codelibs\jhighlight\1.0.2\jhighlight-1.0.2.jar;C:\Users\MogheH\.m2\repository\com\pff\java-libpst\0.8.1\java-libpst-0.8.1.jar;C:\Users\MogheH\.m2\repository\com\github\junrar\junrar\0.7\junrar-0.7.jar;C:\Users\MogheH\.m2\repository\commons-logging\commons-logging-api\1.1\commons-logging-api-1.1.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-vfs2\2.0\commons-vfs2-2.0.jar;C:\Users\MogheH\.m2\repository\org\apache\maven\scm\maven-scm-api\1.4\maven-scm-api-1.4.jar;C:\Users\MogheH\.m2\repository\org\codehaus\plexus\plexus-utils\1.5.6\plexus-utils-1.5.6.jar;C:\Users\MogheH\.m2\repository\org\apache\maven\scm\maven-scm-provider-svnexe\1.4\maven-scm-provider-svnexe-1.4.jar;C:\Users\MogheH\.m2\repository\org\apache\maven\scm\maven-scm-provider-svn-commons\1.4\maven-scm-provider-svn-commons-1.4.jar;C:\Users\MogheH\.m2\repository\regexp\regexp\1.3\regexp-1.3.jar;C:\Users\MogheH\.m2\repository\org\apache\cxf\cxf-rt-rs-client\3.0.3\cxf-rt-rs-client-3.0.3.jar;C:\Users\MogheH\.m2\repository\org\apache\cxf\cxf-rt-transports-http\3.0.3\cxf-rt-transports-http-3.0.3.jar;C:\Users\MogheH\.m2\repository\org\apache\cxf\cxf-core\3.0.3\cxf-core-3.0.3.jar;C:\Users\MogheH\.m2\repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;C:\Users\MogheH\.m2\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;C:\Users\MogheH\.m2\repository\org\apache\ws\xmlschema\xmlschema-core\2.1.0\xmlschema-core-2.1.0.jar;C:\Users\MogheH\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxrs\3.0.3\cxf-rt-frontend-jaxrs-3.0.3.jar;C:\Users\MogheH\.m2\repository\javax\ws\rs\javax.ws.rs-api\2.0.1\javax.ws.rs-api-2.0.1.jar;C:\Users\MogheH\.m2\repository\javax\annotation\javax.annotation-api\1.2\javax.annotation-api-1.2.jar;C:\Users\MogheH\.m2\repository\org\apache\opennlp\opennlp-tools\1.5.3\opennlp-tools-1.5.3.jar;C:\Users\MogheH\.m2\repository\org\apache\opennlp\opennlp-maxent\3.0.3\opennlp-maxent-3.0.3.jar;C:\Users\MogheH\.m2\repository\net\sf\jwordnet\jwnl\1.3.3\jwnl-1.3.3.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Users\MogheH\.m2\repository\com\googlecode\json-simple\json-simple\1.1.1\json-simple-1.1.1.jar;C:\Users\MogheH\.m2\repository\org\json\json\20140107\json-20140107.jar;C:\Users\MogheH\.m2\repository\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\MogheH\.m2\repository\edu\ucar\netcdf4\4.5.5\netcdf4-4.5.5.jar;C:\Users\MogheH\.m2\repository\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;C:\Users\MogheH\.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar;C:\Users\MogheH\.m2\repository\edu\ucar\grib\4.5.5\grib-4.5.5.jar;C:\Users\MogheH\.m2\repository\com\google\protobuf\protobuf-java\2.5.0\protobuf-java-2.5.0.jar;C:\Users\MogheH\.m2\repository\org\jdom\jdom2\2.0.4\jdom2-2.0.4.jar;C:\Users\MogheH\.m2\repository\edu\ucar\jj2000\5.2\jj2000-5.2.jar;C:\Users\MogheH\.m2\repository\org\itadaki\bzip2\0.9.1\bzip2-0.9.1.jar;C:\Users\MogheH\.m2\repository\edu\ucar\cdm\4.5.5\cdm-4.5.5.jar;C:\Users\MogheH\.m2\repository\edu\ucar\udunits\4.5.5\udunits-4.5.5.jar;C:\Users\MogheH\.m2\repository\joda-time\joda-time\2.2\joda-time-2.2.jar;C:\Users\MogheH\.m2\repository\org\quartz-scheduler\quartz\2.2.0\quartz-2.2.0.jar;C:\Users\MogheH\.m2\repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;C:\Users\MogheH\.m2\repository\net\sf\ehcache\ehcache-core\2.6.2\ehcache-core-2.6.2.jar;C:\Users\MogheH\.m2\repository\com\beust\jcommander\1.35\jcommander-1.35.jar;C:\Users\MogheH\.m2\repository\edu\ucar\httpservices\4.5.5\httpservices-4.5.5.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\commons-csv\1.0\commons-csv-1.0.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\core\sis-utility\0.5\sis-utility-0.5.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\storage\sis-netcdf\0.5\sis-netcdf-0.5.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\storage\sis-storage\0.5\sis-storage-0.5.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\core\sis-referencing\0.5\sis-referencing-0.5.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\core\sis-metadata\0.5\sis-metadata-0.5.jar;C:\Users\MogheH\.m2\repository\org\opengis\geoapi\3.0.0\geoapi-3.0.0.jar;C:\Users\MogheH\.m2\repository\javax\measure\jsr-275\0.9.3\jsr-275-0.9.3.jar;C:\Users\MogheH\.m2\repository\com\thoughtworks\xstream\xstream\1.4.8\xstream-1.4.8.jar;C:\Users\MogheH\.m2\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;C:\Users\MogheH\.m2\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\Users\MogheH\.m2\repository\xalan\xalan\2.7.2\xalan-2.7.2.jar;C:\Users\MogheH\.m2\repository\xalan\serializer\2.7.2\serializer-2.7.2.jar;C:\Users\MogheH\.m2\repository\xerces\xercesImpl\2.11.0\xercesImpl-2.11.0.jar;C:\Users\MogheH\.m2\repository\xml-apis\xml-apis\1.4.01\xml-apis-1.4.01.jar;C:\Users\MogheH\.m2\repository\org\apache\xmlgraphics\xmlgraphics-commons\2.0.1\xmlgraphics-commons-2.0.1.jar;C:\Users\MogheH\.m2\repository\javax\mail\mail\1.5.0-b01\mail-1.5.0-b01.jar;C:\Users\MogheH\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\MogheH\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar;C:\Users\MogheH\.m2\repository\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;C:\Users\MogheH\.m2\repository\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;C:\Users\MogheH\.m2\repository\org\jsoup\jsoup\1.8.3\jsoup-1.8.3.jar;C:\Users\MogheH\.m2\repository\org\jodd\jodd-core\3.6.7\jodd-core-3.6.7.jar;C:\Users\MogheH\.m2\repository\org\jodd\jodd-lagarto\3.6.7\jodd-lagarto-3.6.7.jar;C:\Users\MogheH\.m2\repository\org\jodd\jodd-log\3.6.7\jodd-log-3.6.7.jar;C:\Users\MogheH\.m2\repository\org\jodd\jodd-props\3.6.7\jodd-props-3.6.7.jar;C:\Users\MogheH\.m2\repository\org\mongodb\mongo-java-driver\2.11.3\mongo-java-driver-2.11.3.jar;C:\Users\MogheH\.m2\repository\com\helger\ph-css\4.1.1\ph-css-4.1.1.jar;C:\Users\MogheH\.m2\repository\com\helger\ph-commons\6.2.4\ph-commons-6.2.4.jar;C:\Users\MogheH\.m2\repository\com\google\code\findbugs\annotations\2.0.3\annotations-2.0.3.jar;C:\Users\MogheH\.m2\repository\com\fifesoft\rsyntaxtextarea\2.5.8\rsyntaxtextarea-2.5.8.jar;C:\Users\MogheH\.m2\repository\org\slf4j\slf4j-api\1.7.13\slf4j-api-1.7.13.jar;C:\Users\MogheH\.m2\repository\org\freemarker\freemarker\2.3.23\freemarker-2.3.23.jar;C:\Users\MogheH\.m2\repository\org\projectlombok\lombok\1.16.10\lombok-1.16.10.jar;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-java\1.2.5\cucumber-java-1.2.5.jar;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-junit\1.2.5\cucumber-junit-1.2.5.jar;C:\Users\MogheH\.m2\repository\org\apache\logging\log4j\log4j-api\2.6.2\log4j-api-2.6.2.jar;C:\Users\MogheH\.m2\repository\org\apache\logging\log4j\log4j-core\2.6.2\log4j-core-2.6.2.jar;C:\Users\MogheH\.m2\repository\com\github\mifmif\generex\1.0.1\generex-1.0.1.jar;C:\Users\MogheH\.m2\repository\dk\brics\automaton\automaton\1.11-8\automaton-1.11-8.jar;C:\Users\MogheH\.m2\repository\org\picocontainer\picocontainer\2.15\picocontainer-2.15.jar;C:\Users\MogheH\.m2\repository\info\cukes\cucumber-picocontainer\1.2.5\cucumber-picocontainer-1.2.5.jar;C:\Projects\Cucumber\AlphaApi.commons-1.0-SNAPSHOT.jar;C:\Projects\Cucumber\TFS-SDK-14.111.1\redist\lib\com.microsoft.tfs.sdk-14.111.1.jar;C:\Projects\Cucumber\lib\sqljdbc42.jar;C:\Users\MogheH\.m2\repository\com\google\guava\guava\21.0\guava-21.0.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-java\3.0.1\selenium-java-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\3.0.1\selenium-chrome-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-edge-driver\3.0.1\selenium-edge-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-ie-driver\3.0.1\selenium-ie-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-opera-driver\3.0.1\selenium-opera-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-safari-driver\3.0.1\selenium-safari-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\io\netty\netty\3.5.7.Final\netty-3.5.7.Final.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-support\3.0.1\selenium-support-3.0.1.jar;C:\Users\MogheH\.m2\repository\net\sourceforge\htmlunit\htmlunit\2.23\htmlunit-2.23.jar;C:\Users\MogheH\.m2\repository\net\sourceforge\htmlunit\htmlunit-core-js\2.23\htmlunit-core-js-2.23.jar;C:\Users\MogheH\.m2\repository\net\sourceforge\htmlunit\neko-htmlunit\2.23\neko-htmlunit-2.23.jar;C:\Users\MogheH\.m2\repository\net\sourceforge\cssparser\cssparser\0.9.20\cssparser-0.9.20.jar;C:\Users\MogheH\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar;C:\Users\MogheH\.m2\repository\com\codeborne\phantomjsdriver\1.3.0\phantomjsdriver-1.3.0.jar;C:\Users\MogheH\.m2\repository\org\eclipse\jetty\websocket\websocket-client\9.2.15.v20160210\websocket-client-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\org\eclipse\jetty\jetty-util\9.2.15.v20160210\jetty-util-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\org\eclipse\jetty\jetty-io\9.2.15.v20160210\jetty-io-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\org\eclipse\jetty\websocket\websocket-common\9.2.15.v20160210\websocket-common-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\org\eclipse\jetty\websocket\websocket-api\9.2.15.v20160210\websocket-api-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-firefox-driver\3.0.1\selenium-firefox-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-remote-driver\3.0.1\selenium-remote-driver-3.0.1.jar;C:\Users\MogheH\.m2\repository\org\seleniumhq\selenium\selenium-api\3.0.1\selenium-api-3.0.1.jar;C:\Users\MogheH\.m2\repository\cglib\cglib-nodep\3.2.4\cglib-nodep-3.2.4.jar;C:\Users\MogheH\.m2\repository\net\java\dev\jna\jna-platform\4.1.0\jna-platform-4.1.0.jar;C:\Users\MogheH\.IdeaIC2016.3\config\plugins\cucumber-java\lib\cucumber-jvm-formatter.jar;C:\Program
Files (x86)\JetBrains\IntelliJ IDEA Community Edition
2016.3.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain
cucumber.api.cli.Main --plugin
org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome
--glue steps C:/Projects/Cucumber/src/test/resources/features/Login1.feature
Testing started at 10:18 ...
Exception in thread "main" cucumber.runtime.CucumberException: Error
parsing feature file
C:/Projects/Cucumber/src/test/resources/features/Login1.feature
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:133)
at
cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:104)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:54)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:34)
at
cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:239)
at cucumber.runtime.Runtime.run(Runtime.java:111)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: gherkin.parser.ParseError: Parse error at
C:/Projects/Cucumber/src/test/resources/features/Login1.feature:19. Found
step when expecting one of: examples, feature, scenario, scenario_outline,
tag. (Current getState: tag).
at gherkin.parser.Parser$Machine.event(Parser.java:207)
at gherkin.parser.Parser.event(Parser.java:159)
at gherkin.parser.Parser.step(Parser.java:131)
at gherkin.lexer.En.scan(En.java:788)
at gherkin.lexer.I18nLexer.scan(I18nLexer.java:36)
at gherkin.parser.Parser.parse(Parser.java:62)
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:131)
... 12 more

Process finished with exit code 1

=======================================================================================================

here are my Feature files which i want to run

Feature: SelfTrade


@Funded
Scenario: initial Self Trade Login Test

Given I am on a login page
When I enter account number
When I enter Date of birth
And I click "Continue button"
And I entered a security password
Then I can login successfully


Scenario: Verify Login Top menu for "SelfTrade" web portal

@Funded

Given I am on a login page
Then I can see the Login Top menu1
Then I can see the Login Top menu2
Then I can see the Login Top menu3
Then I can see the Login Top menu4

Scenario: Quote 50 Barclays share

@Funded

Given I am on a login page
When I click on search Investment
And I search for Barclays shares
And I Buy 50 Barclays Share
And i will get a Quotes
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Premdas
2017-09-12 12:39:12 UTC
Permalink
Raw Message
First of all a tips on mailing list etiquette.

1. Don't post long unformatted stack traces. Instead either

a) Read the stack trace and extract the most important bits OR
b) Post the stack trace on a service like GIST and link to it

Your stack trace is telling you whats wrong

Caused by: gherkin.parser.ParseError: Parse error at
C:/Projects/Cucumber/src/test/resources/features/Login1.feature:19. Found
step when expecting one of: examples, feature, scenario, scenario_outline,
tag. (Current getState: tag).

I suspect the problem is that you are putting tags (@Funded) inside
scenarios. They need to go outside and above the Scenario e.g.

@tag
Scenario

NOT

Scenario
@tag

All best

Andrew
Post by hiren moghe
"C:\Program Files\Java\jdk1.8.0_111\bin\java"
-Dorg.jetbrains.run.directory=C:\Projects\Cucumber\src\test\resources\features
-Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files
(x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.6\bin"
-Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\deploy.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\access-bridge-64.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\cldrdata.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\dnsns.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\jaccess.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\jfxrt.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\localedata.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\nashorn.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunec.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunjce_provider.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunmscapi.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\sunpkcs11.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\ext\zipfs.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\javaws.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jfxswt.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\management-agent.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\plugin.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program
Files\Java\jdk1.8.0_111\jre\lib\rt.jar;C:\Projects\
Cucumber\target\test-classes;C:\Users\MogheH\.m2\repository\info\cukes\
cucumber-core\1.2.5\cucumber-core-1.2.5.jar;C:\Users\
MogheH\.m2\repository\info\cukes\cucumber-html\0.2.3\
cucumber-html-0.2.3.jar;C:\Users\MogheH\.m2\repository\
info\cukes\cucumber-jvm-deps\1.0.5\cucumber-jvm-deps-1.0.5.
jar;C:\Users\MogheH\.m2\repository\info\cukes\gherkin\
2.12.2\gherkin-2.12.2.jar;C:\Users\MogheH\.m2\repository\
junit\junit\4.12\junit-4.12.jar;C:\Users\MogheH\.m2\
repository\org\hamcrest\hamcrest-core\1.3\hamcrest-
core-1.3.jar;C:\Users\MogheH\.m2\repository\org\codeartisans\org.json\
20161124\org.json-20161124.jar;C:\Users\MogheH\.m2\
repository\commons-codec\commons-codec\1.9\commons-
codec-1.9.jar;C:\Users\MogheH\.m2\repository\org\apache\
jmeter\ApacheJMeter_junit\3.0\ApacheJMeter_junit-3.0.jar;C:\
Users\MogheH\.m2\repository\org\apache\jmeter\jorphan\3.0\
jorphan-3.0.jar;C:\Users\MogheH\.m2\repository\org\
apache\jmeter\ApacheJMeter_core\3.0\ApacheJMeter_core-3.
0.jar;C:\Users\MogheH\.m2\repository\org\ow2\asm\asm\5.
1\asm-5.1.jar;C:\Users\MogheH\.m2\repository\net\minidev\
accessors-smart\1.1\accessors-smart-1.1.jar;C:\Users\MogheH\
.m2\repository\bsf\bsf\2.4.0\bsf-2.4.0.jar;C:\Users\MogheH\
.m2\repository\avalon-framework\avalon-framework\4.
1.4\avalon-framework-4.1.4.jar;C:\Users\MogheH\.m2\
repository\org\beanshell\bsh\2.0b5\bsh-2.0b5.jar;C:\Users\
MogheH\.m2\repository\org\bouncycastle\bcmail-jdk15on\1.
49\bcmail-jdk15on-1.49.jar;C:\Users\MogheH\.m2\repository\
org\bouncycastle\bcprov-jdk15on\1.49\bcprov-jdk15on-1.
49.jar;C:\Users\MogheH\.m2\repository\org\bouncycastle\
bcpkix-jdk15on\1.49\bcpkix-jdk15on-1.49.jar;C:\Users\
MogheH\.m2\repository\commons-collections\commons-
collections\3.2.2\commons-collections-3.2.2.jar;C:\
Users\MogheH\.m2\repository\org\apache\commons\commons-
dbcp2\2.1.1\commons-dbcp2-2.1.1.jar;C:\Users\MogheH\.m2\
repository\commons-httpclient\commons-httpclient\3.1\
commons-httpclient-3.1.jar;C:\Users\MogheH\.m2\repository\
commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\
MogheH\.m2\repository\commons-jexl\commons-jexl\1.1\commons-
jexl-1.1.jar;C:\Users\MogheH\.m2\repository\org\apache\
commons\commons-jexl\2.1.1\commons-jexl-2.1.1.jar;C:\
Users\MogheH\.m2\repository\org\apache\commons\commons-
jexl3\3.0\commons-jexl3-3.0.jar;C:\Users\MogheH\.m2\
repository\org\apache\commons\commons-lang3\3.4\commons-
lang3-3.4.jar;C:\Users\MogheH\.m2\repository\commons-
logging\commons-logging\1.2\commons-logging-1.2.jar;C:\
Users\MogheH\.m2\repository\org\apache\commons\commons-
math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\MogheH\.m2\
repository\commons-net\commons-net\3.4\commons-net-3.
4.jar;C:\Users\MogheH\.m2\repository\org\apache\commons\
commons-pool2\2.4.2\commons-pool2-2.4.2.jar;C:\Users\
MogheH\.m2\repository\dnsjava\dnsjava\2.1.7\dnsjava-2.1.7.
jar;C:\Users\MogheH\.m2\repository\excalibur-logger\excalibur-logger\1.1\
excalibur-logger-1.1.jar;C:\Users\MogheH\.m2\repository\
org\codehaus\groovy\groovy-all\2.4.6\groovy-all-2.4.6.
jar;C:\Users\MogheH\.m2\repository\org\apache\
httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;C:\
Users\MogheH\.m2\repository\org\apache\httpcomponents\
httpmime\4.5.2\httpmime-4.5.2.jar;C:\Users\MogheH\.m2\
repository\org\apache\httpcomponents\httpcore\4.4.4\
httpcore-4.4.4.jar;C:\Users\MogheH\.m2\repository\oro\oro\
2.0.8\oro-2.0.8.jar;C:\Users\MogheH\.m2\repository\jcharts\
jcharts\0.7.5\jcharts-0.7.5.jar;C:\Users\MogheH\.m2\
repository\org\mozilla\rhino\1.7.7.1\rhino-1.7.7.1.jar;C:\
Users\MogheH\.m2\repository\logkit\logkit\2.0\logkit-2.0.
jar;C:\Users\MogheH\.m2\repository\net\sf\jtidy\jtidy\
r938\jtidy-r938.jar;C:\Users\MogheH\.m2\repository\org\
apache\tika\tika-core\1.12\tika-core-1.12.jar;C:\Users\
MogheH\.m2\repository\org\apache\tika\tika-parsers\1.12\
tika-parsers-1.12.jar;C:\Users\MogheH\.m2\repository\
org\gagravarr\vorbis-java-tika\0.6\vorbis-java-tika-0.6.
jar;C:\Users\MogheH\.m2\repository\com\healthmarketscience\jackcess\
jackcess\2.1.2\jackcess-2.1.2.jar;C:\Users\MogheH\.m2\
repository\commons-lang\commons-lang\2.6\commons-lang-
2.6.jar;C:\Users\MogheH\.m2\repository\com\healthmarketscience\jackcess\
jackcess-encrypt\2.1.1\jackcess-encrypt-2.1.1.jar;C:\
Users\MogheH\.m2\repository\net\sourceforge\jmatio\jmatio\
1.0\jmatio-1.0.jar;C:\Users\MogheH\.m2\repository\org\
apache\james\apache-mime4j-core\0.7.2\apache-mime4j-core-
0.7.2.jar;C:\Users\MogheH\.m2\repository\org\apache\james\
\Users\MogheH\.m2\repository\org\apache\commons\commons-
compress\1.10\commons-compress-1.10.jar;C:\Users\
MogheH\.m2\repository\org\tukaani\xz\1.5\xz-1.5.jar;C:\
Users\MogheH\.m2\repository\org\apache\pdfbox\pdfbox\1.8.
10\pdfbox-1.8.10.jar;C:\Users\MogheH\.m2\repository\org\
apache\pdfbox\fontbox\1.8.10\fontbox-1.8.10.jar;C:\Users\
MogheH\.m2\repository\org\apache\pdfbox\jempbox\1.8.10\
jempbox-1.8.10.jar;C:\Users\MogheH\.m2\repository\org\
apache\poi\poi\3.13\poi-3.13.jar;C:\Users\MogheH\.m2\
repository\org\apache\poi\poi-scratchpad\3.13\poi-
scratchpad-3.13.jar;C:\Users\MogheH\.m2\repository\org\
apache\poi\poi-ooxml\3.13\poi-ooxml-3.13.jar;C:\Users\
MogheH\.m2\repository\org\apache\poi\poi-ooxml-schemas\
3.13\poi-ooxml-schemas-3.13.jar;C:\Users\MogheH\.m2\repository\org\apache\
xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;C:\Users\
MogheH\.m2\repository\org\ccil\cowan\tagsoup\tagsoup\1.
2.1\tagsoup-1.2.1.jar;C:\Users\MogheH\.m2\repository\
com\googlecode\mp4parser\isoparser\1.0.2\isoparser-1.0.
2.jar;C:\Users\MogheH\.m2\repository\org\aspectj\
aspectjrt\1.8.0\aspectjrt-1.8.0.jar;C:\Users\MogheH\.m2\
repository\com\drewnoakes\metadata-extractor\2.8.0\
metadata-extractor-2.8.0.jar;C:\Users\MogheH\.m2\repository\com\adobe\xmp\
xmpcore\5.1.2\xmpcore-5.1.2.jar;C:\Users\MogheH\.m2\
repository\de\l3s\boilerpipe\boilerpipe\1.1.0\boilerpipe-1.
1.0.jar;C:\Users\MogheH\.m2\repository\com\rometools\rome\
1.5.1\rome-1.5.1.jar;C:\Users\MogheH\.m2\repository\com\
rometools\rome-utils\1.5.1\rome-utils-1.5.1.jar;C:\Users\
MogheH\.m2\repository\org\jdom\jdom\2.0.2\jdom-2.0.2.
jar;C:\Users\MogheH\.m2\repository\org\gagravarr\
vorbis-java-core\0.6\vorbis-java-core-0.6.jar;C:\Users\
MogheH\.m2\repository\com\googlecode\juniversalchardet\
\Users\MogheH\.m2\repository\org\codelibs\jhighlight\1.0.2\
jhighlight-1.0.2.jar;C:\Users\MogheH\.m2\repository\com\pff\
java-libpst\0.8.1\java-libpst-0.8.1.jar;C:\Users\MogheH\.m2\
repository\com\github\junrar\junrar\0.7\junrar-0.7.jar;C:\
Users\MogheH\.m2\repository\commons-logging\commons-
logging-api\1.1\commons-logging-api-1.1.jar;C:\Users\
MogheH\.m2\repository\org\apache\commons\commons-vfs2\2.
0\commons-vfs2-2.0.jar;C:\Users\MogheH\.m2\repository\
org\apache\maven\scm\maven-scm-api\1.4\maven-scm-api-1.4.
jar;C:\Users\MogheH\.m2\repository\org\codehaus\plexus\plexus-utils\1.5.6\
plexus-utils-1.5.6.jar;C:\Users\MogheH\.m2\repository\
org\apache\maven\scm\maven-scm-provider-svnexe\1.4\maven-
scm-provider-svnexe-1.4.jar;C:\Users\MogheH\.m2\repository\
org\apache\maven\scm\maven-scm-provider-svn-commons\1.4\
maven-scm-provider-svn-commons-1.4.jar;C:\Users\
MogheH\.m2\repository\regexp\regexp\1.3\regexp-1.3.jar;C:\
Users\MogheH\.m2\repository\org\apache\cxf\cxf-rt-rs-
client\3.0.3\cxf-rt-rs-client-3.0.3.jar;C:\Users\MogheH\.m2\
repository\org\apache\cxf\cxf-rt-transports-http\3.0.3\cxf-
rt-transports-http-3.0.3.jar;C:\Users\MogheH\.m2\
repository\org\apache\cxf\cxf-core\3.0.3\cxf-core-3.0.3.jar;
C:\Users\MogheH\.m2\repository\org\codehaus\woodstox\woodstox-core-asl\4.
4.1\woodstox-core-asl-4.4.1.jar;C:\Users\MogheH\.m2\
repository\org\codehaus\woodstox\stax2-api\3.1.4\
stax2-api-3.1.4.jar;C:\Users\MogheH\.m2\repository\org\
apache\ws\xmlschema\xmlschema-core\2.1.0\xmlschema-core-2.1.
0.jar;C:\Users\MogheH\.m2\repository\org\apache\cxf\cxf-
\Users\MogheH\.m2\repository\javax\ws\rs\javax.ws.rs-api\2.
0.1\javax.ws.rs-api-2.0.1.jar;C:\Users\MogheH\.m2\
repository\javax\annotation\javax.annotation-api\1.2\
javax.annotation-api-1.2.jar;C:\Users\MogheH\.m2\
repository\org\apache\opennlp\opennlp-tools\1.5.3\opennlp-
tools-1.5.3.jar;C:\Users\MogheH\.m2\repository\org\
apache\opennlp\opennlp-maxent\3.0.3\opennlp-maxent-3.0.3.
jar;C:\Users\MogheH\.m2\repository\net\sf\jwordnet\
jwnl\1.3.3\jwnl-1.3.3.jar;C:\Users\MogheH\.m2\repository\
org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;
C:\Users\MogheH\.m2\repository\com\googlecode\
json-simple\json-simple\1.1.1\json-simple-1.1.1.jar;C:\
Users\MogheH\.m2\repository\org\json\json\20140107\json-
20140107.jar;C:\Users\MogheH\.m2\repository\com\google\code\
gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\MogheH\.m2\
repository\edu\ucar\netcdf4\4.5.5\netcdf4-4.5.5.jar;C:\
Users\MogheH\.m2\repository\net\jcip\jcip-annotations\1.0\
jcip-annotations-1.0.jar;C:\Users\MogheH\.m2\repository\
net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar;C:\Users\MogheH\
.m2\repository\edu\ucar\grib\4.5.5\grib-4.5.5.jar;C:\Users\
MogheH\.m2\repository\com\google\protobuf\protobuf-java\
2.5.0\protobuf-java-2.5.0.jar;C:\Users\MogheH\.m2\
repository\org\jdom\jdom2\2.0.4\jdom2-2.0.4.jar;C:\Users\
MogheH\.m2\repository\edu\ucar\jj2000\5.2\jj2000-5.2.
jar;C:\Users\MogheH\.m2\repository\org\itadaki\bzip2\
0.9.1\bzip2-0.9.1.jar;C:\Users\MogheH\.m2\repository\
edu\ucar\cdm\4.5.5\cdm-4.5.5.jar;C:\Users\MogheH\.m2\
repository\edu\ucar\udunits\4.5.5\udunits-4.5.5.jar;C:\
Users\MogheH\.m2\repository\joda-time\joda-time\2.2\joda-
time-2.2.jar;C:\Users\MogheH\.m2\repository\org\quartz-
scheduler\quartz\2.2.0\quartz-2.2.0.jar;C:\Users\MogheH\.m2\
repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;C:\Users\
MogheH\.m2\repository\net\sf\ehcache\ehcache-core\2.6.2\
ehcache-core-2.6.2.jar;C:\Users\MogheH\.m2\repository\
com\beust\jcommander\1.35\jcommander-1.35.jar;C:\Users\
MogheH\.m2\repository\edu\ucar\httpservices\4.5.5\
httpservices-4.5.5.jar;C:\Users\MogheH\.m2\repository\
\Users\MogheH\.m2\repository\org\apache\sis\core\sis-
utility\0.5\sis-utility-0.5.jar;C:\Users\MogheH\.m2\
repository\org\apache\sis\storage\sis-netcdf\0.5\sis-
netcdf-0.5.jar;C:\Users\MogheH\.m2\repository\org\apache\sis\storage\sis-
storage\0.5\sis-storage-0.5.jar;C:\Users\MogheH\.m2\
repository\org\apache\sis\core\sis-referencing\0.5\sis-
referencing-0.5.jar;C:\Users\MogheH\.m2\repository\org\
apache\sis\core\sis-metadata\0.5\sis-metadata-0.5.jar;C:\
Users\MogheH\.m2\repository\org\opengis\geoapi\3.0.0\
geoapi-3.0.0.jar;C:\Users\MogheH\.m2\repository\javax\
measure\jsr-275\0.9.3\jsr-275-0.9.3.jar;C:\Users\MogheH\.m2\
repository\com\thoughtworks\xstream\xstream\1.4.8\xstream-
1.4.8.jar;C:\Users\MogheH\.m2\repository\xmlpull\xmlpull\1.
1.3.1\xmlpull-1.1.3.1.jar;C:\Users\MogheH\.m2\repository\
xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\Users\MogheH\.
m2\repository\xalan\xalan\2.7.2\xalan-2.7.2.jar;C:\Users\
MogheH\.m2\repository\xalan\serializer\2.7.2\serializer-2.
7.2.jar;C:\Users\MogheH\.m2\repository\xerces\xercesImpl\
2.11.0\xercesImpl-2.11.0.jar;C:\Users\MogheH\.m2\
repository\xml-apis\xml-apis\1.4.01\xml-apis-1.4.01.jar;C:\
Users\MogheH\.m2\repository\org\apache\xmlgraphics\
xmlgraphics-commons\2.0.1\xmlgraphics-commons-2.0.1.jar;
C:\Users\MogheH\.m2\repository\javax\mail\mail\1.
5.0-b01\mail-1.5.0-b01.jar;C:\Users\MogheH\.m2\repository\
javax\activation\activation\1.1\activation-1.1.jar;C:\Users\
MogheH\.m2\repository\org\apache\geronimo\specs\
geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.
jar;C:\Users\MogheH\.m2\repository\com\jayway\
jsonpath\json-path\2.2.0\json-path-2.2.0.jar;C:\Users\
MogheH\.m2\repository\net\minidev\json-smart\2.2.1\json-
smart-2.2.1.jar;C:\Users\MogheH\.m2\repository\org\
jsoup\jsoup\1.8.3\jsoup-1.8.3.jar;C:\Users\MogheH\.m2\
repository\org\jodd\jodd-core\3.6.7\jodd-core-3.6.7.jar;C:\
Users\MogheH\.m2\repository\org\jodd\jodd-lagarto\3.6.7\
jodd-lagarto-3.6.7.jar;C:\Users\MogheH\.m2\repository\
org\jodd\jodd-log\3.6.7\jodd-log-3.6.7.jar;C:\Users\MogheH\
.m2\repository\org\jodd\jodd-props\3.6.7\jodd-props-3.6.7.
jar;C:\Users\MogheH\.m2\repository\org\mongodb\mongo-
java-driver\2.11.3\mongo-java-driver-2.11.3.jar;C:\Users\
MogheH\.m2\repository\com\helger\ph-css\4.1.1\ph-css-4.
1.1.jar;C:\Users\MogheH\.m2\repository\com\helger\ph-
commons\6.2.4\ph-commons-6.2.4.jar;C:\Users\MogheH\.m2\
repository\com\google\code\findbugs\annotations\2.0.3\
annotations-2.0.3.jar;C:\Users\MogheH\.m2\repository\
com\fifesoft\rsyntaxtextarea\2.5.8\rsyntaxtextarea-2.5.8.
jar;C:\Users\MogheH\.m2\repository\org\slf4j\slf4j-
api\1.7.13\slf4j-api-1.7.13.jar;C:\Users\MogheH\.m2\
repository\org\freemarker\freemarker\2.3.23\freemarker-
2.3.23.jar;C:\Users\MogheH\.m2\repository\org\
projectlombok\lombok\1.16.10\lombok-1.16.10.jar;C:\Users\
MogheH\.m2\repository\info\cukes\cucumber-java\1.2.5\
cucumber-java-1.2.5.jar;C:\Users\MogheH\.m2\repository\
info\cukes\cucumber-junit\1.2.5\cucumber-junit-1.2.5.jar;C:\
Users\MogheH\.m2\repository\org\apache\logging\log4j\
log4j-api\2.6.2\log4j-api-2.6.2.jar;C:\Users\MogheH\.m2\
repository\org\apache\logging\log4j\log4j-core\2.6.2\log4j-
core-2.6.2.jar;C:\Users\MogheH\.m2\repository\com\
github\mifmif\generex\1.0.1\generex-1.0.1.jar;C:\Users\
MogheH\.m2\repository\dk\brics\automaton\automaton\1.
11-8\automaton-1.11-8.jar;C:\Users\MogheH\.m2\repository\
org\picocontainer\picocontainer\2.15\picocontainer-2.15.jar;C:\
Users\MogheH\.m2\repository\info\cukes\cucumber-
picocontainer\1.2.5\cucumber-picocontainer-1.2.5.jar;C:\
Projects\Cucumber\AlphaApi.commons-1.0-SNAPSHOT.jar;C:\
Projects\Cucumber\TFS-SDK-14.111.1\redist\lib\com.
microsoft.tfs.sdk-14.111.1.jar;C:\Projects\Cucumber\lib\
sqljdbc42.jar;C:\Users\MogheH\.m2\repository\com\google\
guava\guava\21.0\guava-21.0.jar;C:\Users\MogheH\.m2\
repository\org\seleniumhq\selenium\selenium-java\3.0.1\
selenium-java-3.0.1.jar;C:\Users\MogheH\.m2\repository\
org\seleniumhq\selenium\selenium-chrome-driver\3.0.1\
selenium-chrome-driver-3.0.1.jar;C:\Users\MogheH\.m2\
repository\org\seleniumhq\selenium\selenium-edge-driver\
3.0.1\selenium-edge-driver-3.0.1.jar;C:\Users\MogheH\.m2\
repository\org\seleniumhq\selenium\selenium-ie-driver\3.
0.1\selenium-ie-driver-3.0.1.jar;C:\Users\MogheH\.m2\
repository\org\seleniumhq\selenium\selenium-opera-
driver\3.0.1\selenium-opera-driver-3.0.1.jar;C:\Users\
MogheH\.m2\repository\org\seleniumhq\selenium\selenium-
safari-driver\3.0.1\selenium-safari-driver-3.0.1.jar;C:\
Users\MogheH\.m2\repository\io\netty\netty\3.5.7.Final\
netty-3.5.7.Final.jar;C:\Users\MogheH\.m2\repository\
org\seleniumhq\selenium\selenium-support\3.0.1\
selenium-support-3.0.1.jar;C:\Users\MogheH\.m2\repository\
net\sourceforge\htmlunit\htmlunit\2.23\htmlunit-2.23.
jar;C:\Users\MogheH\.m2\repository\net\sourceforge\
htmlunit\htmlunit-core-js\2.23\htmlunit-core-js-2.23.jar;
C:\Users\MogheH\.m2\repository\net\sourceforge\
htmlunit\neko-htmlunit\2.23\neko-htmlunit-2.23.jar;C:\
Users\MogheH\.m2\repository\net\sourceforge\cssparser\
cssparser\0.9.20\cssparser-0.9.20.jar;C:\Users\MogheH\.m2\
repository\org\w3c\css\sac\1.3\sac-1.3.jar;C:\Users\MogheH\
.m2\repository\com\codeborne\phantomjsdriver\1.3.0\
phantomjsdriver-1.3.0.jar;C:\Users\MogheH\.m2\repository\
org\eclipse\jetty\websocket\websocket-client\9.2.15.
v20160210\websocket-client-9.2.15.v20160210.jar;C:\Users\
MogheH\.m2\repository\org\eclipse\jetty\jetty-util\9.2.
15.v20160210\jetty-util-9.2.15.v20160210.jar;C:\Users\
MogheH\.m2\repository\org\eclipse\jetty\jetty-io\9.2.15.
v20160210\jetty-io-9.2.15.v20160210.jar;C:\Users\MogheH\
.m2\repository\org\eclipse\jetty\websocket\websocket-
common\9.2.15.v20160210\websocket-common-9.2.15.
v20160210.jar;C:\Users\MogheH\.m2\repository\org\eclipse\
jetty\websocket\websocket-api\9.2.15.v20160210\websocket-
api-9.2.15.v20160210.jar;C:\Users\MogheH\.m2\repository\
org\seleniumhq\selenium\selenium-firefox-driver\3.0.1\
selenium-firefox-driver-3.0.1.jar;C:\Users\MogheH\.m2\
repository\org\seleniumhq\selenium\selenium-remote-
driver\3.0.1\selenium-remote-driver-3.0.1.jar;C:\Users\
MogheH\.m2\repository\org\seleniumhq\selenium\selenium-
api\3.0.1\selenium-api-3.0.1.jar;C:\Users\MogheH\.m2\
\Users\MogheH\.m2\repository\net\java\dev\jna\jna-platform\
4.1.0\jna-platform-4.1.0.jar;C:\Users\MogheH\.IdeaIC2016.3\
config\plugins\cucumber-java\lib\cucumber-jvm-formatter.jar;C:\Program
Files (x86)\JetBrains\IntelliJ IDEA Community Edition
2016.3.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain
cucumber.api.cli.Main --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter
--monochrome --glue steps C:/Projects/Cucumber/src/test/
resources/features/Login1.feature
Testing started at 10:18 ...
Exception in thread "main" cucumber.runtime.CucumberException: Error
parsing feature file C:/Projects/Cucumber/src/test/
resources/features/Login1.feature
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:133)
at cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(
CucumberFeature.java:104)
at cucumber.runtime.model.CucumberFeature.load(
CucumberFeature.java:54)
at cucumber.runtime.model.CucumberFeature.load(
CucumberFeature.java:34)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(
RuntimeOptions.java:239)
at cucumber.runtime.Runtime.run(Runtime.java:111)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
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 com.intellij.rt.execution.application.AppMain.main(
AppMain.java:147)
Caused by: gherkin.parser.ParseError: Parse error at
C:/Projects/Cucumber/src/test/resources/features/Login1.feature:19. Found
step when expecting one of: examples, feature, scenario, scenario_outline,
tag. (Current getState: tag).
at gherkin.parser.Parser$Machine.event(Parser.java:207)
at gherkin.parser.Parser.event(Parser.java:159)
at gherkin.parser.Parser.step(Parser.java:131)
at gherkin.lexer.En.scan(En.java:788)
at gherkin.lexer.I18nLexer.scan(I18nLexer.java:36)
at gherkin.parser.Parser.parse(Parser.java:62)
at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:131)
... 12 more
Process finished with exit code 1
============================================================
===========================================
here are my Feature files which i want to run
Feature: SelfTrade
@Funded
Scenario: initial Self Trade Login Test
Given I am on a login page
When I enter account number
When I enter Date of birth
And I click "Continue button"
And I entered a security password
Then I can login successfully
Scenario: Verify Login Top menu for "SelfTrade" web portal
@Funded
Given I am on a login page
Then I can see the Login Top menu1
Then I can see the Login Top menu2
Then I can see the Login Top menu3
Then I can see the Login Top menu4
Scenario: Quote 50 Barclays share
@Funded
Given I am on a login page
When I click on search Investment
And I search for Barclays shares
And I Buy 50 Barclays Share
And i will get a Quotes
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
------------------------
Andrew Premdas
blog.andrew.premdas.org
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...