[JBoss JIRA] (ARQ-1124) Prepare Arquillian iOS Alpha1 release
by Karel Piwko (JIRA)
Karel Piwko created ARQ-1124:
--------------------------------
Summary: Prepare Arquillian iOS Alpha1 release
Key: ARQ-1124
URL: https://issues.jboss.org/browse/ARQ-1124
Project: Arquillian
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Extension - iOS
Affects Versions: ios_1.0.0.next
Reporter: Karel Piwko
Assignee: Jan Papousek
Prepare first release of integration layer for iOS emulators/devices.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (ARQ-1122) ServletRuntime lookup only returns servlets of first web application found
by Ralph Abbink (JIRA)
Ralph Abbink created ARQ-1122:
---------------------------------
Summary: ServletRuntime lookup only returns servlets of first web application found
Key: ARQ-1122
URL: https://issues.jboss.org/browse/ARQ-1122
Project: Arquillian
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: WebLogic Containers
Affects Versions: 1.0.2.Final
Environment: Weblogic 12c
Reporter: Ralph Abbink
Assignee: Vineet Reynolds
After enriching our regular maven built .ear i noticed the following exception: {noformat}ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.{noformat}
It appears the lookup for servletRuntimes only returns the servlets of the first web application in the deployment. In our .ear we have several web modules and the first one found wasn't the module i enriched using Arquillian.
{code:title=WebLogicJMXClient.java}
private ObjectName[] findServletRuntimes(ObjectName wlServerRuntime, String deploymentName) throws Exception
{
ObjectName[] applicationRuntimes = (ObjectName[]) connection.getAttribute(wlServerRuntime, "ApplicationRuntimes");
for(ObjectName applicationRuntime: applicationRuntimes)
{
String applicationName = (String) connection.getAttribute(applicationRuntime, "Name");
if(applicationName.equals(deploymentName))
{
ObjectName[] componentRuntimes = (ObjectName[]) connection.getAttribute(applicationRuntime, "ComponentRuntimes");
for(ObjectName componentRuntime : componentRuntimes)
{
String componentType = (String) connection.getAttribute(componentRuntime, "Type");
if (componentType.toString().equals("WebAppComponentRuntime"))
{
ObjectName[] servletRuntimes = (ObjectName[]) connection.getAttribute(componentRuntime, "Servlets");
return servletRuntimes;
}
}
}
}
throw new DeploymentException(
"The deployment details were not found in the MBean Server. Possible causes include:\n"
+ "1. The deployment failed. Review the admin server and the target's log files.\n"
+ "2. The deployment succeeded partially. The deployment must be the Active state. Instead, it might be in the 'New' state.\n"
+ " Verify that the the admin server can connect to the target(s), and that no firewall rules are blocking the traffic on the admin channel.");
}
{code}
{code:title="Returning all servlets found" WebLogicJMXClient.java}
private List<ObjectName> findServletRuntimes(ObjectName wlServerRuntime, String deploymentName) throws Exception
{
ObjectName[] applicationRuntimes = (ObjectName[]) connection.getAttribute(wlServerRuntime, "ApplicationRuntimes");
for(ObjectName applicationRuntime: applicationRuntimes)
{
String applicationName = (String) connection.getAttribute(applicationRuntime, "Name");
if(applicationName.equals(deploymentName))
{
List<ObjectName> servletRuntimes = new ArrayList<ObjectName>();
ObjectName[] componentRuntimes = (ObjectName[]) connection.getAttribute(applicationRuntime, "ComponentRuntimes");
for(ObjectName componentRuntime : componentRuntimes)
{
String componentType = (String) connection.getAttribute(componentRuntime, "Type");
if (componentType.toString().equals("WebAppComponentRuntime"))
{
servletRuntimes.addAll(Arrays.asList((ObjectName[]) connection.getAttribute(componentRuntime, "Servlets")));
}
}
return servletRuntimes;
}
}
throw new DeploymentException(
"The deployment details were not found in the MBean Server. Possible causes include:\n"
+ "1. The deployment failed. Review the admin server and the target's log files.\n"
+ "2. The deployment succeeded partially. The deployment must be the Active state. Instead, it might be in the 'New' state.\n"
+ " Verify that the the admin server can connect to the target(s), and that no firewall rules are blocking the traffic on the admin channel.");
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (ARQGRA-190) Support initializing Page Objects declared with generic types
by Juraj Húska (JIRA)
Juraj Húska created ARQGRA-190:
----------------------------------
Summary: Support initializing Page Objects declared with generic types
Key: ARQGRA-190
URL: https://issues.jboss.org/browse/ARQGRA-190
Project: Arquillian Graphene
Issue Type: Feature Request
Components: core
Affects Versions: 2.0.0.Alpha2
Reporter: Juraj Húska
Assignee: Juraj Húska
When using @Page annotation to initialize Page Object in this way:
{code}
public abstract class AbstractWebDriverTest<P extends AbstractPage> extends Arquillian {
@Page
public P page;
}
{code}
I am getting this:
{code}
java.lang.RuntimeException: Can not initialise Page Object!
at org.jboss.arquillian.graphene.enricher.ComponentObjectsEnricher.initializePageObjectFields(ComponentObjectsEnricher.java:106)
at org.jboss.arquillian.graphene.enricher.ComponentObjectsEnricher.enrich(ComponentObjectsEnricher.java:64)
at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(Arquillian.java:130)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
{code}
It is caused with this line in PageFragmentEnricher:
{code}
Class declaredClass = Class.forName(i.getGenericType().toString().split(" ")[1]);
{code}
I need support for Page Objects declared with generic type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (ARQ-997) Provide Arquillian Core functionality as OSGi Bundle
by Thomas Diesler (JIRA)
Thomas Diesler created ARQ-997:
----------------------------------
Summary: Provide Arquillian Core functionality as OSGi Bundle
Key: ARQ-997
URL: https://issues.jboss.org/browse/ARQ-997
Project: Arquillian
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Base Implementation, OSGi Containers
Reporter: Thomas Diesler
Assignee: Thomas Diesler
(10:06:40 AM) tdiesler: mgoldmann, lets talk about the individual sub task. Embedded ARQ Core functionality for example. Instead of embedding the jars arq-osgi could include the *.class files. I suppose that is equally unacceptable, right?
(10:07:22 AM) akurtakov: tdiesler: if they are not built from source yes
(10:07:27 AM) mgoldmann: yes, classes are unpcettable too, you can embed what you just build (arq-osgi jars)
(10:08:19 AM) tdiesler: mgoldmann, but arq core was build by some other process - noi?
(10:08:53 AM) mgoldmann: yes, so we cannot embed it
(10:09:13 AM) mgoldmann: but we can bundle arq-core in a jar at the time of building arq-core
(10:09:15 AM) tdiesler: mgoldmann, that process could make an aggregated bundle that arq-osgi could use (i.e. import packages from)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months