[JBoss JIRA] (ARQ-1856) Remove dynamic import from arquillian-bundle
by Thomas Diesler (JIRA)
Thomas Diesler created ARQ-1856:
-----------------------------------
Summary: Remove dynamic import from arquillian-bundle
Key: ARQ-1856
URL: https://issues.jboss.org/browse/ARQ-1856
Project: Arquillian
Issue Type: Feature Request
Components: OSGi Containers
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: osgi_2.0.0.Final
Currently, the arquillian bundle contains a dynamic import "*" which may lead to undesired package wiring. Theoretically, it should possible to embed all required dependencies in the arq-bundle and load the test classes from the test-bundle(s) via Bundle.loadClass(...)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (ARQ-1828) Replace Testrunner with a JUnit-Rule
by Moinz Moinzen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1828?page=com.atlassian.jira.plugin.s... ]
Moinz Moinzen commented on ARQ-1828:
------------------------------------
A Junit Rule would also make it a lot easier to make some default setup, and then allowing the individual tests to add further information.
Example:
{code:java}
private static class MyTestRule implements TestRule {
ArquillianTestRule arquillianTestRule = new ArquillianTestRule();
private final WebArchive warModule = ShrinkWrap.create(WebArchive.class, "test.war")
.addPackages(true, "some.default.package")
.addAsManifestResource("MANIFEST.MF")
.addAsWebResource(EmptyAsset.INSTANCE, "beans.xml")
.addClass(ServerUserContext.class);
private final JavaArchive beansModule = ShrinkWrap.create(JavaArchive.class).addClass(ApiProducer.class);
public void addWarClass(Class clazz) {
warModule.addClass(clazz);
}
@Override
public Statement apply(Statement base, Description description) {
arquillianTestRule.setArchive(ShrinkWrap.create(EnterpriseArchive.class, "test.ear")
.addAsModule(warModule)
.addAsModule(beansModule));
return arquillianTestRule.apply(base, description);
}
}
{code}
Usage:
{code:java}
public class MyTest {
@Rule
MyTestRule rule = new MyTestRule();
@Setup
public void setup(){
rule.addWarClass(MyOtherClass.class);
}
@Test
public void myTest() {
//Go!
}
}
{code}
> Replace Testrunner with a JUnit-Rule
> ------------------------------------
>
> Key: ARQ-1828
> URL: https://issues.jboss.org/browse/ARQ-1828
> Project: Arquillian
> Issue Type: Feature Request
> Reporter: Niels Niels
>
> At the moment all tests must run with
> @RunWith(Arquillian.class)
> This makes trouble if you need a runner with add or remove tests like Parameterized. I can't see what Arquillian.class do which can not be done with a JUnit-Rule. JUnit-Rules can be easily combined.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (ARQGRA-280) Refactor handling of staleness to improve performance
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-280?page=com.atlassian.jira.plugin... ]
Lukáš Fryč resolved ARQGRA-280.
-------------------------------
Resolution: Deferred
Fix Version/s: (was: 2.1-Tracking)
> Refactor handling of staleness to improve performance
> -----------------------------------------------------
>
> Key: ARQGRA-280
> URL: https://issues.jboss.org/browse/ARQGRA-280
> Project: Arquillian Graphene
> Issue Type: Task
> Affects Versions: 2.0.0.Alpha3
> Reporter: Jan Papousek
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> The current situation of handling staleness is it works purely accidentally in some cases and it prevents any caching of web elements.
> Imagine the following code:
> {code}
> Action action = new Actions(driver).moveToElement(element).build();
> ... // some action causing staleness
> action.perform();
> {code}
> The previous code doesn't throw StaleElementReferenceException only in the case when the action causing staleness finishes before the requested action starts performing and when there is no caching of web elements. Currently Graphene can't force the action to perform again when StaleElementReferenceException is thrown.
> In the case of caching the scenerio would be:
> # element is loaded and put to the cache
> # ... some actions ...
> # action causing staleness is performed
> # the requested action starts performing
> -- cached element is used => StaleElementReferenceException
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (ARQGRA-117) Create JBoss Forge plugin for Graphene
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-117?page=com.atlassian.jira.plugin... ]
Lukáš Fryč resolved ARQGRA-117.
-------------------------------
Resolution: Deferred
Fix Version/s: (was: 2.1-Tracking)
> Create JBoss Forge plugin for Graphene
> --------------------------------------
>
> Key: ARQGRA-117
> URL: https://issues.jboss.org/browse/ARQGRA-117
> Project: Arquillian Graphene
> Issue Type: Task
> Components: integration
> Reporter: Lukáš Fryč
> Priority: Critical
> Labels: devconf
>
> This could be rather Arquillian/Drone plugin.
> Requirements:
> * scaffolding new Graphene project
> * start remote selenium server (ARQ-1032)
> * ability to export @Deployment
> ** the export of deployment is afaik done in Arquillian Forge plugin
> * ability to deploy @Deployment (export + deploy) (ARQGRA-213)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months