[JBoss JIRA] Created: (ARQ-272) Allow @Deployment to be optional
by Thomas Diesler (JIRA)
Allow @Deployment to be optional
--------------------------------
Key: ARQ-272
URL: https://jira.jboss.org/browse/ARQ-272
Project: Arquillian
Issue Type: Feature Request
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 1.0.0.Alpha4
OSGi test cases frequently generate non-trivial bundle deployments as part of their test methods.
The bundle that contains the test case is automatically generated by ARQ. To be precise, the test class is always added to the @Deployment. The bundle manifest is generated or extended by the required Import/Export-Package statements.
If @Deployment was missing, ARQ could generate an Archive that contains the test class, which would reduce the noise in ARQ OSGi tests considerably.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-302) OSGi integration not usable with Equinox
by Thomas Diesler (JIRA)
OSGi integration not usable with Equinox
----------------------------------------
Key: ARQ-302
URL: https://jira.jboss.org/browse/ARQ-302
Project: Arquillian
Issue Type: Bug
Components: OSGi Containers
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 1.0.0.Beta1
testBundleContextInjection(org.jboss.test.osgi.framework.simple.SimpleArquillianTestCase) Time elapsed: 0.045 sec <<< ERROR!
java.lang.ClassNotFoundException: org.jboss.test.osgi.framework.simple.SimpleArquillianTestCase
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.jboss.arquillian.osgi.internal.ArquillianBundleActivator$1.loadTestClass(ArquillianBundleActivator.java:62)
at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:133)
It seems that Equinox does not resolve the test bundle as a result of a dynamic import
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQ-193) Create auxillary OSGi test bundle
by Thomas Diesler (JIRA)
Create auxillary OSGi test bundle
---------------------------------
Key: ARQ-193
URL: https://jira.jboss.org/browse/ARQ-193
Project: Arquillian
Issue Type: Task
Components: OSGi Integration
Reporter: Thomas Diesler
Currently the test bundle must contain the test case and a number of Import-Package statemetns related to the test infrastructure
@Deployment
public static JavaArchive createdeployment()
{
final JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class);
archive.setManifest(new Asset()
{
public InputStream openStream()
{
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addBundleActivator(SimpleActivator.class.getName());
// [TODO] generate a separate bundle the contains the test case
builder.addExportPackages(OSGiEmbeddedFrameworkTestCase.class);
builder.addImportPackages("org.jboss.arquillian.junit", "org.jboss.shrinkwrap.api", "org.jboss.shrinkwrap.api.spec");
builder.addImportPackages("javax.inject", "org.junit", "org.junit.runner");
return builder.openStream();
}
});
archive.addClasses(SimpleActivator.class, SimpleService.class);
archive.addClasses(OSGiEmbeddedFrameworkTestCase.class);
return archive;
}
There test bundle should not need to contain the test case nor these additional imports. An auxillary bundle that contains the test case should be generated and installed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ARQAJO-42) Check possibilities for SimpleFormatter to automatically escape dangerous characters
by Karel Piwko (JIRA)
Check possibilities for SimpleFormatter to automatically escape dangerous characters
------------------------------------------------------------------------------------
Key: ARQAJO-42
URL: https://issues.jboss.org/browse/ARQAJO-42
Project: Arquillian Ajocado
Issue Type: Enhancement
Affects Versions: 1.0.0.Alpha1
Reporter: Karel Piwko
Assignee: Lukas Fryc
Fix For: 1.0.0.Alpha2
Write tests to check {code:java}getDescendant(jq), getChild(jq) and getAttribute(atr){code} is correctly escaping characters needed for jquery/javascript execution via Selenium object.
For the moment, dangerous characters are ' (single quote) and : (colon), which may appears in RF generated id's and function calls, such as :contains('foo').
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQAJO-34) WaitForChangeAndReturn is not working correctly
by Karel Piwko (JIRA)
WaitForChangeAndReturn is not working correctly
-----------------------------------------------
Key: ARQAJO-34
URL: https://issues.jboss.org/browse/ARQAJO-34
Project: Arquillian Ajocado
Issue Type: Bug
Reporter: Karel Piwko
Assignee: Lukas Fryc
See following code:
<code>
private JQueryLocator ACCOUNT_SELECT = jq("#AccountSelectForm\\:accountsTable\\:n");
private JQueryLocator EQUIPMENT_SELECT = jq("#EquipmentSelectForm\\:equipmentsTable\\:n");
@Test
public void testFoo() {
waitHttp(selenium).click(CREATE_LINK);
selenium.click(ACCOUNT_SELECT.getDescendant(jq("tbody tr:eq(3) td:eq(1)")));
waitGui.failWith("Unable to find account details").until(elementPresent.locator(DETAILS_ACCOUNT));
String accountDetail = waitGui.waitForChangeAndReturn("Not selected", retrieveText.locator(DETAILS_ACCOUNT));
...
}
</code>
fails with:
java.lang.reflect.InvocationTargetException
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.jboss.arquillian.ajocado.framework.internal.WaitingProxy.invoke(WaitingProxy.java:54)
[testng] at org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting_$$_javassist_0.waitForChangeAndReturn(AjaxWaiting_$$_javassist_0.java)
[testng] at org.jboss.wfk.examples.ftest.ajocado.sportsclub.ReservationsTest.createReservationWithoutSearchTest(ReservationsTest.java:110)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
[testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:749)
[testng] at org.testng.TestRunner.run(TestRunner.java:600)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
[testng] at org.testng.TestNG.run(TestNG.java:856)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1137)
[testng] at org.testng.TestNG.main(TestNG.java:1101)
[testng] Caused by: com.thoughtworks.selenium.SeleniumException: missing ) after argument list
[testng] at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
[testng] at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
[testng] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.jboss.arquillian.ajocado.interception.CommandContextImpl.invoke(CommandContextImpl.java:103)
[testng] at org.jboss.arquillian.ajocado.interception.InterceptionProxyImpl.invoke(InterceptionProxyImpl.java:112)
[testng] at $Proxy10.doCommand(Unknown Source)
[testng] at com.thoughtworks.selenium.DefaultSelenium.waitForCondition(DefaultSelenium.java:627)
[testng] at org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.waitForCondition(TypedSeleniumImpl.java:664)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at org.jboss.arquillian.ajocado.framework.AjaxSeleniumContext.invoke(AjaxSeleniumContext.java:107)
[testng] at $Proxy11.waitForCondition(Unknown Source)
[testng] at org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitExpectingTimeout(AjaxWaiting.java:163)
[testng] at org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitForChangeAndReturn(AjaxWaiting.java:120)
[testng] ... 31 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Created: (ARQAJO-28) Support addCustomRequestHeader(String, String) for AjaxSelenium
by Karel Piwko (JIRA)
Support addCustomRequestHeader(String,String) for AjaxSelenium
--------------------------------------------------------------
Key: ARQAJO-28
URL: https://issues.jboss.org/browse/ARQAJO-28
Project: Arquillian Ajocado
Issue Type: Feature Request
Affects Versions: 1.0.0.Alpha1
Reporter: Karel Piwko
Assignee: Lukas Fryc
AjaxSelenium is not able to add a custom request header to request.
DefaultSelenium functionality allows you to modify all out coming requests by adding a header(it can't be removed though). This is need for testing things like HTTP Basic Authorization.
e.g.
<code>browser.addCustomRequestHeader("Authorization", "Basic " + encodeCredentials("user", "password"));</code>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months