Questions tagged [graphene2]

Graphene 2 project is designed as set of extensions for Selenium WebDriver project focused on rapid development and usability in Java environment.

API is straightforward and enforces tester to write Ajax-enabled and reusable tests and test abstractions,
encourages to write tests in a consistent level of abstraction using Page Objects and Page Fragments,
the code is robust with improved readability,
    supports request guarding and interception,
    improved Waiting API,
allows WebDriver API interception
focuses on portability across browsers,
it enables JQuery selectors as a location strategy which is familiar to web development community
brings concepts for on-the-fly injection of extensions to a page code (enabling advanced testing features)
integrates with Arquillian Core and Arquillian Drone extension
    in order to browser setup browser and container integration easily

With all the concepts above, Graphene 2 brings power to space of enterprise Java-based testing

32 questions
4
votes
2 answers

"Unable to retrieve Drone Instance within 60 seconds"

I am learning Java EE 7 using a German book called Workshop Java EE 7, which basically takes one by the hand to build a running sample application. In the second "iteration" of the book, integration tests are being defined (GitHub branch). However,…
4
votes
2 answers

Why can I click an input with type=radio of a h:selectOneRadio, but not one of a p:selectOneRadio with Graphene/Selenium?

A h:selectOneRadio results in in a table and p:selectOneRadio in in a table with some divs around the input. The id for both is [form id]:[selectOneRadio id]:[option number] which I can use successfully for…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
3
votes
3 answers

Is it possible to use Arquillian Graphene without using Arquillian container management and deployment?

I have a quite big set of Selenium driven UI tests, that are very cumbersome to maintain. I've read about Arquillian Graphene and its benefits, making life with Selenium less painfull. I wonder if it's possible to use Arquillian Graphene (2)…
2
votes
1 answer

How to check a p:selectBooleanCheckbox and wait for it to be checked in Graphene/Selenium?

Similar to Why can I click an input with type=radio of a h:selectOneRadio, but not one of a p:selectOneRadio with Graphene/Selenium? I'd like to know how I can check a p:selectBooleanCheckbox in a functional tests with Arquillian and…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
2
votes
2 answers

How to use Arquillian Graphene 2 with ChromeDriver

How do I use Graphene 2 with different browsers such as Chrome? (Default htmlUnit does not work well for me.) Having Wildfly 8.1 server running inside Arquillian container, I'd like to use Drone + Graphene to execute actual…
teejay
  • 2,353
  • 2
  • 27
  • 36
2
votes
1 answer

Graphene Abstractions - Best Practice for Assertions

I started writing my tests using the Page Abstractions provided by Graphene (Page Objects and Page Fragments). I am trying to decide on what is the best practice for writing assertions. Specifically I am trying to decide where the assertions should…
alex
  • 705
  • 9
  • 21
2
votes
2 answers

How do I tell Graphene to load my @Page?

TL;DR: How do I tell Graphene which (relative) URL to load for the @Page-injected object? I'm trying to setup my web frontend integration tests using the "State of the art", namely a combination of Arquillian, Arquillian Drone, Selenium 2 and…
1
vote
0 answers

Graphene JWT authentication

I'm using graphene-jwt to authenticate user but my user has to multiple object return here def mutate(cls, root, info, **kwargs): result = super().mutate(root, info, **kwargs) ... How can I add additional query to 'filter' more like…
denmg
  • 360
  • 3
  • 12
1
vote
1 answer

Graphene-django with generic resolver to return List or Field

I am trying to simplify my graphene-django view to have a single graphene query that returns a graphene.List or a graphene.Field based on whether a parameter was sent. I am attempting the following code, but I am not sure how to handle the change…
phenicie
  • 637
  • 8
  • 14
1
vote
1 answer

Need assistance with testng/arquillian/drone/graphene and bypassing arquillian.xml

Let me setup my test environment. We run our tests on VM's from the command line. Running the testng.xml from the commandline. Can't pass parameters through that. We have a test.properties with all of our runtime parameters and through that, we…
GregMa
  • 740
  • 2
  • 10
  • 25
1
vote
1 answer

Create an instance of a class with Graphene @Page

Create an instance of a class with Graphene @Page I have a requirement where I am finding the classes at runtime and invoking its methods at runtime. While invoking its method (using reflection java), everything gets initialize except the…
Ankit Ojha
  • 33
  • 5
1
vote
1 answer

How to create a Payara user account in an Arquillian functional test?

I'm using Arquillian to deploy a Java EE WAR on Payara embedded for functional testing with Graphene. Everything works fine. However, I'd like to know whether it's possible to test user authentication for @RolesAllowed protected RESTful methods.…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
1
vote
0 answers

switch between tabs in chrome using arquillian graphene

I need to switch tabs using Graphene and continue the test without failing. I am testing an application that creates a project and then opens that project from a link on a page. My issue is that it opens the project in a new tab and to continue…
Sharon
  • 146
  • 1
  • 8
1
vote
1 answer

Arquillian Graphene @InitialPage always returns null

I have a test scenario: @Test public void testHomePage(@InitialPage LoginPage loginPage) { loginPage.login(); assertNotNull(welkom.getText()); } Driven by an arquillian deployment: @Deployment(testable = true) However, the…
onderbewustzijn
  • 935
  • 7
  • 32
1
vote
0 answers

Is it possible to write Groovy tests with Arquillian/Drone/Graphene

I'm writing function UI tests and need to know does Arquillian/Drone/Graphene frameworks support Groovy tests. I'm finding it hard to find information online. Can groovy be implemented in this way or should is it easier to stick with Spock and Geb…
user7813528
1
2 3