Re: [geb-user] Running geb-example-gradle

76 views
Skip to first unread message
Message has been deleted

Marcin Erdmann

unread,
Dec 8, 2016, 4:42:33 PM12/8/16
to Geb User Mailing List
Hi Adam,

Can you please explain what exact errors you are getting when running the tests in your IDE? Can you share the stacktrace?

I just run ./gradlew idea, opened the generated .ipr file in IntelliJ and after adding the following line to GebConfig.groovy:

reportsDir = "build"

and running GebishOrgSpec, Firefox has been opened and test succeeded.

Marcin

On Thu, Dec 8, 2016 at 6:32 PM, Adam Sherman <asher...@gmail.com> wrote:
Hello,

I cloned this example project into IntelliJ and am wondering why when I run the project from the gradle terminal/command line (i.e. "gradle chromeTest") it works fine but it DOESN'T work if you try to run from the GebConfig.groovy file?  I would like to be able to debug and run individual tests (green play arrows in GebishOrgTest.groovy) from the IDE but can't because of some selenium browser errors.

I have experience in groovy but am a little frustrated with Geb so far because early project configuration etc is not my strong suite.

I would like to debug so that I can understand how the project flows, for instance I have no idea how the project flows from GebConfig.groovy into GebishOrgTest?

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/dd5243cf-61eb-4b0d-a91d-f1733cb45d29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Sherman

unread,
Dec 12, 2016, 9:53:46 AM12/12/16
to Geb User Mailing List
Thanks I added reportsDir = build and now I am getting an error I believe is related to WebDrive/Firefox versions not getting along:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
RL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1481553130377,"updateDate":1481553130377,"applyBackgroundUpdates":1,"skinnable":true,"size":21152,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"50.0.2","maxVersion":"50.0.2"}],"targetPlatforms":[],"seen":true} 

I have the latest version of firefox (50.0.2).

Marcin Erdmann

unread,
Dec 12, 2016, 3:54:30 PM12/12/16
to Geb User Mailing List
If you are using the same version of WebDriver that is currently specified in geb-example-gradle on master (2.51.0) than you cannot use FF later than 44.0 which can be downloaded from https://ftp.mozilla.org/pub/firefox/releases/44.0/.

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages