[JBoss JIRA] Updated: (ARQAJO-15) Implement atomic call of AjaxWaiting$waitForChangeAndReturn
by Lukas Fryc (JIRA)
[ https://issues.jboss.org/browse/ARQAJO-15?page=com.atlassian.jira.plugin.... ]
Lukas Fryc updated ARQAJO-15:
-----------------------------
Component/s: core
> Implement atomic call of AjaxWaiting$waitForChangeAndReturn
> -----------------------------------------------------------
>
> Key: ARQAJO-15
> URL: https://issues.jboss.org/browse/ARQAJO-15
> Project: Arquillian Ajocado
> Issue Type: Feature Request
> Components: core
> Reporter: Lukas Fryc
> Assignee: Lukas Fryc
> Priority: Minor
> Fix For: 1.0.0.Alpha3
>
>
> Currently, there need to be 2 operations to run operation "waitForChangeAndReturn":
> selenium.waitForCondition(js(format("{0} != '{1}'", scriptString, oldValueString)), this.getTimeout());
> String retrieved = selenium.getEval(script);
> This idea is to implement this operation atomically in meaning of Selenium.
> It can a) made tests atomic and stable, b) improve run time a little
> All previous methods fails:
> a) call getEval evaluating doWaitForCondition followed by expression to evaluate
> b) implement own method on Selenium.prototype to call doWaitForCondition and getEval in sequence (this method also lacks the possibility of passing timeout)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[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, 1 month
[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, 1 month
[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, 1 month