Questions tagged [jboss-arquillian]

JBoss Arquillian is a testing platform for the JVM that enables developers to create automated integration, functional and acceptance tests for Java middleware.

JBoss Arquillian is an extensible testing platform for the JVM that enables developers to create automated integration, functional and acceptance tests for Java middleware.

The Arquillian project intends to reduce the complexity of integration testing by covering several aspects of test execution, such as container lifecycle management and remote execution, and adheres to three core principles:

  • Tests should be portable to any supported container
  • Tests should be executable from both the IDE and the build tool
  • The platform should extend or integrate existing test frameworks
1007 questions
0
votes
2 answers

How do i use ViewAccsessScope beans when testing in Arquillian?

When i use @ViewAccsessScoped beans from CODI i get the following error, when using Arquillian for testing my beans. org.jboss.arquillian.test.spi.ArquillianProxyException: org.jboss.weld.context.ContextNotActiveException : WELD-001303 No active…
Trind
  • 1,583
  • 4
  • 18
  • 38
0
votes
2 answers

@FindBy with Arquillian Graphene

actually i want to get an element with the @FindBy that is use into the Page Objects pattern. I've 2 classes, the 1st one is my page objects named TestPage and the 2nd one is named PageSaveTest (where my tests happen and call the TestPage). I've…
e1che
  • 1,241
  • 1
  • 17
  • 34
0
votes
1 answer

CssSelector multiple, Arquillian Graphene

i'm using Arquillian Graphene to get an element, and i want to be sur the get this one, becaus there is a lot of element with the same class and the id is generated so i can't really use it. So, i'm looking for something like…
e1che
  • 1,241
  • 1
  • 17
  • 34
0
votes
2 answers

arquillian create database schema before test

Hello i try to create my database schem before tests but its fail :/ this is my script: CREATE TABLE OFCONVERSATION ( CONVERSATIONID integer NOT NULL, ROOM character varying(1024), ISEXTERNAL smallint NOT NULL, STARTDATE bigint NOT NULL, …
0
votes
2 answers

How to exclude maven dependency while running test cases

Im working on ejb3 and testing with arqullian. I have following dependency in pom.xml org.glassfish.main.ejb javax.ejb
0
votes
1 answer

sample domain.xml that will work with arquillian

I've been testing my programs using arquillian for months now. I just recently installed jenkins in a glassfish container and have it build my project. I have a problem that arquillian is trying to use the same settings as the glassfish container…
0
votes
1 answer

solve postgresql missing dependency without the use of JBoss modules or avoid manual manipulation on jboss managed files

I am using postgresql, JBoss 7.1 and J2EE6. My project structure has 1 ear with 1 JAR holding EJBs and 1 WAR holding the web front. I am delivering the postgresql driver as JBoss module and changing the standalone.xml to reference the data…
Fagner Brack
  • 2,365
  • 4
  • 33
  • 69
0
votes
1 answer

JSFUnit inconsistently getting JSFServerSession

We are trying to run JSFUnit with Arquillian on a WebLogic 12c container and are running into a few problems. First, when we try to use the @InitialPage annotation to inject in the JSFServerSession and JSFClientSession, the JSFServerSession is…
mpaulse
  • 87
  • 1
  • 11
0
votes
1 answer

Hibernate grammar exception using JPA with hsqldb

I am trying to write a persistence test. I have a Maven project and am using Arquillian with an embedded glassfish container, Hibernate (as my JPA provider) and HSQLDB in memory as my store. When I run my test I get a grammar exception (I can post…
Romski
  • 1,912
  • 1
  • 12
  • 27
0
votes
2 answers

Simple Arquillian test to start and stop deployed app

I'm trying to wrap my head around Arquillian and perhaps even start using it in my project. I have a simple Java web app that deploys as a WAR to Tomcat. In my project, I define a ServletContextListener impl so that I can execute code when Tomcat…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
2 answers

arquillian persistence extension doesn't work

I'm trying to get my webservice tested. This webservice uses ejb with jpa to retrieve its data. So i want to use the arquillian extension to get this done. This is my arquillian test class: @RunWith(Arquillian.class) public class PersonWebServiceIT…
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
0
votes
1 answer

How to consistently test AJAX using Arquillian Graphene?

I am running Arquillian Graphene (2.0.0.Alpha3) with WebDriver and I am getting inconsistent results. At times, my JUnit test will pass without a problem and other times I will get errors like this: 12:13:29.667 WARN - Exception…
Alex C
  • 51
  • 5
0
votes
1 answer

Unit testing EJBs on Jboss 4.3?

Is there anything similar to Embedded Glassfish, where one can unit test EJBs, for Jboss 4.3 AS. I have googled and came to know about a tool Arquillian and later figured out that it doesnt support Jboss 4.3 container Check here. Is there any…
Patton
  • 2,002
  • 3
  • 25
  • 36
0
votes
0 answers

Can't deploy to JBoss 7.1

I am trying to run some integrationtests after changing app server from Glassfish to JBoss 7.1. However it can't be deployed. It is throwing this error aand then it stops. 20:35:31,252 INFO [org.jboss.as.server] (management-handler-thread - 9)…
user626912
  • 2,546
  • 3
  • 24
  • 33
0
votes
1 answer

isolated testing of backing bean that uses RequestParam without jsf pages

I want to do a relatively simple test. The class being tested (simplified but you get the idea): @Named @RequestScoped public class SomeController { @Inject @RequestParam("someId") Long someId; public SomeClass getSomeClass() { …
drone.ah
  • 1,135
  • 14
  • 28