grails / geb Goto Github PK
View Code? Open in Web Editor NEWGeb Functional Testing for Grails® framework
License: Apache License 2.0
Geb Functional Testing for Grails® framework
License: Apache License 2.0
The monolithic grails project has been broken up into several smaller projects. Visit http://github.com/grails.
I was looking at https://github.com/grails3-plugins/geb/blob/master/src/main/templates/FunctionalSpec.groovy when I noticed the API link. It is for GrailsUnitTestMixin. Is that correct?
Originally posted grails/grails-core#10858
Recently Geb 2.0 has been released. Please upgrade to the latest major version of Geb
If you do as the default grails3 build.gradle suggests and replace the htmlunit driver with one for a real browser, the functional tests fail because the path to the driver is not configured.
java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
I gather his error is from Geb itself, so it isn't clear that the plugin should or should not be handling this setup. Does this mean I have to do something outside my gradle build file (like separately install this driver on my machine)?
Would it be possible for the Geb plugin to notice the driver in the buildfile and just set things up?
Also It would be helpful if the section for functional testing in the Grails user guide mentioned how to do this configuration.
Please upgrade to the latest major version of geb (3.4). Watch out for breaking changes in 3.0 (https://gebish.org/manual/3.4/#history). Thank you.
James, could you upload the bintray credentials. I tried to publish a new version but failed.
Geb configured with PhamtonJS does not detect the redirect triggered by clicking on the href element on the GUI which is triggering the redirect by calling the corresponding controller action.
I have created a demo project showing this issue: https://github.com/hitty5/geb-phantomjs-redirect-problem
Is the problem related to PhantomJS or Geb? By the way, changing the redirect in the controller to forward would fix the issue, by actually forwarding the request is no option.
I had a problem today getting Firefox driver to work. The problem was that the Firefox version on my machine was too new. What I mean is, the geb plugin calls for selenium 2.47.1. So logically, one would add the firefox driver for that same selenium version. 2.47.1. This fails, but updating to the most recent firefox driver version (2.49.1) is all it takes to get it working. But now I've got a geb system that doesn't match my driver version. The alternative would have been to 'downgrade' my local firefox installation to the one that's assumed by 2.47.1.
Web browser versions are likely to move faster than versions of the geb plugin, so I'm wondering if there's a way (and if it is advisable) to structure the plugin so that you can pick the selenium version that will be used without having to change the plugin itself. If this could be worked out then the grails build.gradle
file would be the single source of truth for selenium configuration of grails functional tests.
Hi,
noticed that one of the imports in FunctionalSpec.groovy
seems to have changed,
where it currently says
import grails.testing.mixin.integration.Integration
should say
import grails.test.mixin.integration.Integration
Created pull request #7 to fix it, please let me know if there is any problem
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
org.codehaus.groovy:groovy-templates
, org.codehaus.groovy:groovy-ant
, org.codehaus.groovy:groovy
).github/workflows/gradle.yml
actions/checkout v4
actions/setup-java v4
gradle/gradle-build-action v2
actions/checkout v4
actions/setup-java v4
gradle/gradle-build-action v2
gradle/gradle-build-action v2
.github/workflows/release-notes.yml
actions/checkout v4
release-drafter/release-drafter v5
ncipollo/release-action v1
.github/workflows/release.yml
actions/checkout v4
gradle/wrapper-validation-action v1
actions/setup-java v4
gradle/gradle-build-action v2
gradle/gradle-build-action v2
gradle.properties
org.grails:grails-gradle-plugin 5.3.1
org.grails:grails-core 5.3.5
org.gebish:geb-spock 5.1
org.codehaus.groovy:groovy 3.0.11
org.codehaus.groovy:groovy-ant 3.0.11
org.codehaus.groovy:groovy-templates 3.0.11
settings.gradle
com.gradle.enterprise 3.16
com.gradle.common-custom-user-data-gradle-plugin 1.12.1
build.gradle
com.github.javaparser:javaparser-core 3.15.14
gradle/wrapper/gradle-wrapper.properties
gradle 7.6.3
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.