1 | public TestElement createTestElement() {↵ | | |
|
2 | SubscriberSampler sampler = new SubscriberSampler();↵ | | |
|
3 | this.configureTestElement(sampler);↵ | | |
|
4 | sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));↵ | | |
|
5 | sampler.setJNDIIntialContextFactory(jndiICF.getText());↵ | | |
|
6 | sampler.setProviderUrl(urlField.getText());↵ | | |
|
7 | sampler.setConnectionFactory(jndiConnFac.getText());↵ | | |
|
8 | sampler.setTopic(jmsTopic.getText());↵ | | |
|
9 | sampler.setUsername(jmsUser↵ | | 1 | if (c instanceof CounterConfig) {↵
|
| | | 2 | CounterConfig config = (CounterConfig) c;↵
|
| | | 3 | config.setStart(startField.getText());↵
|
| | | 4 | // Bug 22820 if (endField.getText().length() > 0)↵
|
| | | 5 | {↵
|
| | | 6 | config.setEnd(endField.getText());↵
|
| | | 7 | }↵
|
10 | .getText());↵ | | 8 | config.setIncrement(incrField.getText());↵
|
11 | sampler.setPassword(jmsPwd.getText());↵ | | 9 | ↵
|
12 | sampler.setUseAuth(reqAuth.getText());↵ | | |
|
13 | sampler.setIterations(iterations.getText());↵ | | |
|
14 | sampler.setReadResponse(String.valueOf(readResponse.isSelected()));↵ | | |
|
15 | sampl↵ | | 10 | config.setVarName(varNameField.getText());↵
|
| | | 11 | config.setFormat(formatField.getText());↵
|
16 | er.setClientChoice(clientChoice.getText());↵ | | 12 | config.setIsPerUser(perUse↵
|
17 | return sampler;↵ | | |
|
| | | 13 | rField.isSelected());↵
|
18 | | | 14 |
|