aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-26 09:02:31 +0300
committerArtur Signell <artur@vaadin.com>2013-04-26 09:06:06 +0300
commitc02a2c43e0e6170c1fc4f781aa9711de7a78ffd1 (patch)
tree8654fd01e01b442ccefaad1c3bd581c6b19740e2
parent04a0c678bfbdf141468a0ab4e93d67a52da851d4 (diff)
downloadvaadin-framework-c02a2c43e0e6170c1fc4f781aa9711de7a78ffd1.tar.gz
vaadin-framework-c02a2c43e0e6170c1fc4f781aa9711de7a78ffd1.zip
Support URL parameters for automatically configuring and running test
Change-Id: Icb7c7fda45fe27bb840a9493c519060a7cea2503
-rw-r--r--uitest/src/com/vaadin/tests/push/RoundTripTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/push/RoundTripTest.java b/uitest/src/com/vaadin/tests/push/RoundTripTest.java
index a059a1d275..ee0bf6dcb1 100644
--- a/uitest/src/com/vaadin/tests/push/RoundTripTest.java
+++ b/uitest/src/com/vaadin/tests/push/RoundTripTest.java
@@ -34,11 +34,17 @@ public class RoundTripTest extends AbstractTestUI {
final TextField payloadSize = new TextField("Payload size (bytes)");
payloadSize.setConverter(Integer.class);
payloadSize.setConvertedValue(10000);
+ if (request.getParameter("payload") != null) {
+ payloadSize.setValue(request.getParameter("payload"));
+ }
addComponent(payloadSize);
final TextField testDuration = new TextField("Test duration (ms)");
testDuration.setConverter(Integer.class);
testDuration.setConvertedValue(10000);
addComponent(testDuration);
+ if (request.getParameter("duration") != null) {
+ testDuration.setValue(request.getParameter("duration"));
+ }
Button start = new Button("Start test");
start.addClickListener(new ClickListener() {
@@ -52,6 +58,10 @@ public class RoundTripTest extends AbstractTestUI {
});
addComponent(roundTripTester);
addComponent(start);
+
+ if (request.getParameter("go") != null) {
+ start.click();
+ }
}
@Override