Unable to create step implementation

54 views
Skip to first unread message

aparnaShyam1990

unread,
Sep 23, 2016, 6:48:45 AM9/23/16
to getgauge
Hi,

I have got an issue while creating a java class corresponding to a spec file.
But after creating the spec file that is mentioned in the above link, i was not able to create the java class. 
Could you please suggest the solution to this

Thanks,

Aparna

Mahendra Kariya

unread,
Sep 23, 2016, 6:51:28 AM9/23/16
to getgauge
Hey Aparna,


But after creating the spec file that is mentioned in the above link, i was not able to create the java class. 

Could you please let us know what issue you faced while creating a new class?

aparnaShyam1990

unread,
Sep 23, 2016, 7:01:23 AM9/23/16
to getgauge
Hai,

While clicking the create step implementation and i got an option "create new file". Then  I didnt get further option.

Apoorva M

unread,
Sep 23, 2016, 7:15:05 AM9/23/16
to getg...@googlegroups.com
Hey Aparna, 

You can refer this video for Getting started in 3 steps: https://www.youtube.com/watch?v=A_axX1je5VU

I think this will help you fix the issue you are facing. 

-- Apoorva

aparnaShyam1990

unread,
Sep 26, 2016, 1:36:30 AM9/26/16
to getgauge
Hi,
Apoorva



Thanks for sharing the video and that was very useful for me. So I found out the issue.My issue is there is no stepImplementation.java file under src->test->java and I was not able to create a new java class in the corresponding location.And I have a file GaugeSampleProject, in that all dependencies are defined. So could you please help me to solve the same issue.

Thanks,
Aparna 

aparnaShyam1990

unread,
Sep 26, 2016, 1:42:48 AM9/26/16
to getgauge
I have attached the current status of my Gauge project,Could you please verify it 
Gauge_Issue.PNG
Gauge_issue2.PNG

Apoorva M

unread,
Sep 26, 2016, 1:51:17 AM9/26/16
to getg...@googlegroups.com
Hi, 

Right click on the `java` directory and choose `Mark Directory as` -> `Sources Root`. This will mark the directory as source directory for your project. 

Then you should be able to create Java class as shown here in video.

Apoorva MApplication Developer
ThoughtWorks | Bangalore

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+unsubscribe@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/35997772-5c73-419f-b00d-767c8920ffa4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

aparnaShyam1990

unread,
Sep 26, 2016, 2:26:14 AM9/26/16
to getgauge
That problem solved. Thanks for your support


On Monday, September 26, 2016 at 11:21:17 AM UTC+5:30, apoorvam wrote:
Hi, 

Right click on the `java` directory and choose `Mark Directory as` -> `Sources Root`. This will mark the directory as source directory for your project. 

Then you should be able to create Java class as shown here in video.

Apoorva MApplication Developer
ThoughtWorks | Bangalore

On Mon, Sep 26, 2016 at 11:12 AM, aparnaShyam1990 <imap...@gmail.com> wrote:
I have attached the current status of my Gauge project,Could you please verify it 

On Monday, September 26, 2016 at 11:06:30 AM UTC+5:30, aparnaShyam1990 wrote:
Hi,
Apoorva



Thanks for sharing the video and that was very useful for me. So I found out the issue.My issue is there is no stepImplementation.java file under src->test->java and I was not able to create a new java class in the corresponding location.And I have a file GaugeSampleProject, in that all dependencies are defined. So could you please help me to solve the same issue.

Thanks,
Aparna 


On Friday, September 23, 2016 at 4:45:05 PM UTC+5:30, apoorvam wrote:
Hey Aparna, 

You can refer this video for Getting started in 3 steps: https://www.youtube.com/watch?v=A_axX1je5VU

I think this will help you fix the issue you are facing. 

-- Apoorva

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.

To post to this group, send email to getg...@googlegroups.com.

aparnaShyam1990

unread,
Sep 26, 2016, 5:42:38 AM9/26/16
to getgauge
Hi, 

I have got an error on the statement (String url), the argument to all the methods. And the displayed error is parameter count mismatch.How to resolve this issue?



Aparna

aparnaShyam1990

unread,
Sep 27, 2016, 4:58:29 AM9/27/16
to getgauge
Hi,

I got an error while running the specification knowledge_graph.spec.I have attached the error console below:


"C:\Program Files\Gauge\bin\gauge.exe" --simple-console "C:/Users/Aparna/Desktop/Automated testing/Gauge with Selenium/specs/knowledge_graph.spec"
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
057705538,"updateDate":1472057705538,"applyBackgroundUpdates":1,"skinnable":true,"size":22012,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"47.0.1","maxVersion":"47.0.1"}],"targetPlatforms":[],"seen":true}
1474966191794 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1474966191796 DeferredSave.extensions.json DEBUG Save changes
1474966191796 addons.xpi DEBUG Updating database with changes to installed add-ons
1474966191796 addons.xpi-utils DEBUG Updating add-on states
1474966191797 addons.xpi-utils DEBUG Writing add-ons list
1474966191802 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\e10sr...@mozilla.org.xpi
1474966191803 addons.xpi DEBUG Calling bootstrap method startup on e10sr...@mozilla.org version 1.0
1474966191803 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\fir...@getpocket.com.xpi
1474966191804 addons.xpi DEBUG Calling bootstrap method startup on fir...@getpocket.com version 1.0.2
1474966191805 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\lo...@mozilla.org.xpi
1474966191806 addons.xpi DEBUG Calling bootstrap method startup on lo...@mozilla.org version 1.3.2
1474966191830 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1474966191830 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.3.0.9150
1474966191834 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1474966191834 addons.manager DEBUG Provider finished startup: XPIProvider
1474966191834 addons.manager DEBUG Starting provider: LightweightThemeManager
1474966191834 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1474966191835 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1474966191835 addons.manager DEBUG Starting provider: GMPProvider
1474966191843 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1474966191843 addons.manager DEBUG Provider finished startup: GMPProvider
1474966191843 addons.manager DEBUG Starting provider: PluginProvider
1474966191844 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1474966191844 addons.manager DEBUG Provider finished startup: PluginProvider
1474966191844 addons.manager DEBUG Completed startup sequence
1474966194386 addons.manager DEBUG Starting provider: <unnamed-provider>
1474966194386 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1474966194387 addons.manager DEBUG Provider finished startup: <unnamed-provider>
JavaScript warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/environment.js, line 15: Proxy.create and Proxy.createFunction are deprecated, use new Proxy instead
1474966195503 DeferredSave.extensions.json DEBUG Write succeeded
1474966195503 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1474966195503 DeferredSave.extensions.json DEBUG Starting timer
1474966195526 DeferredSave.extensions.json DEBUG Starting write
1474966195536 addons.repository DEBUG No addons.json found.
1474966195537 DeferredSave.addons.json DEBUG Save changes
1474966195540 DeferredSave.addons.json DEBUG Starting timer
1474966195586 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1474966195586 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1474966195587 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1474966195596 DeferredSave.addons.json DEBUG Starting write
1474966195604 DeferredSave.extensions.json DEBUG Write succeeded
1474966195623 DeferredSave.addons.json DEBUG Write succeeded

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:123)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at DriverFactory.getDriver(DriverFactory.java:15)
at Driver.initializeDriver(Driver.java:14)
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:497)
at com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:31)
at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:98)
at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:84)
at com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:41)
at com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:55)
at com.thoughtworks.gauge.processor.SuiteExecutionStartingProcessor.process(SuiteExecutionStartingProcessor.java:26)
at com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:72)
at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:37)
  Error Message: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
  057705538,"updateDate":1472057705538,"applyBackgroundUpdates":1,"skinnable":true,"size":22012,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"47.0.1","maxVersion":"47.0.1"}],"targetPlatforms":[],"seen":true}
  1474966191794 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
  1474966191796 DeferredSave.extensions.json DEBUG Save changes
  1474966191796 addons.xpi DEBUG Updating database with changes to installed add-ons
  1474966191796 addons.xpi-utils DEBUG Updating add-on states
  1474966191797 addons.xpi-utils DEBUG Writing add-ons list
  1474966191802 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\e10sr...@mozilla.org.xpi
  1474966191803 addons.xpi DEBUG Calling bootstrap method startup on e10sr...@mozilla.org version 1.0
  1474966191803 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\fir...@getpocket.com.xpi
  1474966191804 addons.xpi DEBUG Calling bootstrap method startup on fir...@getpocket.com version 1.0.2
  1474966191805 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\lo...@mozilla.org.xpi
  1474966191806 addons.xpi DEBUG Calling bootstrap method startup on lo...@mozilla.org version 1.3.2
  1474966191830 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
  1474966191830 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 8.3.0.9150
  1474966191834 addons.manager DEBUG Registering shutdown blocker for XPIProvider
  1474966191834 addons.manager DEBUG Provider finished startup: XPIProvider
  1474966191834 addons.manager DEBUG Starting provider: LightweightThemeManager
  1474966191834 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
  1474966191835 addons.manager DEBUG Provider finished startup: LightweightThemeManager
  1474966191835 addons.manager DEBUG Starting provider: GMPProvider
  1474966191843 addons.manager DEBUG Registering shutdown blocker for GMPProvider
  1474966191843 addons.manager DEBUG Provider finished startup: GMPProvider
  1474966191843 addons.manager DEBUG Starting provider: PluginProvider
  1474966191844 addons.manager DEBUG Registering shutdown blocker for PluginProvider
  1474966191844 addons.manager DEBUG Provider finished startup: PluginProvider
  1474966191844 addons.manager DEBUG Completed startup sequence
  1474966194386 addons.manager DEBUG Starting provider: <unnamed-provider>
  1474966194386 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
  1474966194387 addons.manager DEBUG Provider finished startup: <unnamed-provider>
  JavaScript warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/environment.js, line 15: Proxy.create and Proxy.createFunction are deprecated, use new Proxy instead
  1474966195503 DeferredSave.extensions.json DEBUG Write succeeded
  1474966195503 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
  1474966195503 DeferredSave.extensions.json DEBUG Starting timer
  1474966195526 DeferredSave.extensions.json DEBUG Starting write
  1474966195536 addons.repository DEBUG No addons.json found.
  1474966195537 DeferredSave.addons.json DEBUG Save changes
  1474966195540 DeferredSave.addons.json DEBUG Starting timer
  1474966195586 addons.manager DEBUG Starting provider: PreviousExperimentProvider
  1474966195586 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
  1474966195587 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
  1474966195596 DeferredSave.addons.json DEBUG Starting write
  1474966195604 DeferredSave.extensions.json DEBUG Write succeeded
  1474966195623 DeferredSave.addons.json DEBUG Write succeeded
  
  Build info: version: '2.48.2', revision: '41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06'
  System info: host: 'windevlap5', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_65'
  Driver info: driver.version: Driver
  Stacktrace: 
  org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:135)
  org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
  org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
  org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
  org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
  org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
  org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
  DriverFactory.getDriver(DriverFactory.java:15)
  Driver.initializeDriver(Driver.java:14)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  java.lang.reflect.Method.invoke(Method.java:497)
  com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:31)
  com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:98)
  com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:84)
  com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:41)
  com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:55)
  com.thoughtworks.gauge.processor.SuiteExecutionStartingProcessor.process(SuiteExecutionStartingProcessor.java:26)
  com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:72)
  com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:37)
  
  Error Message: java.lang.NullPointerException
  Stacktrace: 
  Driver.closeDriver(Driver.java:20)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  java.lang.reflect.Method.invoke(Method.java:497)
  com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:31)
  com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:98)
  com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:84)
  com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:41)
  com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:55)
  com.thoughtworks.gauge.processor.SuiteExecutionEndingProcessor.process(SuiteExecutionEndingProcessor.java:26)
  com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:72)
  com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:37)
  
Successfully generated html-report to => C:\Users\Aparna\Desktop\Automated testing\Gauge with Selenium\reports\html-report
Specifications: 0 executed 0 passed 0 failed 0 skipped
Scenarios: 0 executed 0 passed 0 failed 0 skipped

Total time taken: 49.238s
Updates are available. Run gauge --check-updates for more info.

Process finished with exit code 1

Reply all
Reply to author
Forward
0 new messages