aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/push')
-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