thedivxboy
17 years agoOccasional Contributor
ProgressDialog
Hi,
I tried quite everything in the SoapUI API for progress bars and dialogs .. without results. I've also tried several samples found on google during three hours, but no examples are related to SoapUI.
When I execute this simple groovy script the progress dialog never progress and doesn't disappear (even if I put the parameter allowCancel of the constructor ProgressDialog to true like in the example).
Do you have any solution ? What's wrong with my code ?
Kind regards,
Arnaud.
I tried quite everything in the SoapUI API for progress bars and dialogs .. without results. I've also tried several samples found on google during three hours, but no examples are related to SoapUI.
When I execute this simple groovy script the progress dialog never progress and doesn't disappear (even if I put the parameter allowCancel of the constructor ProgressDialog to true like in the example).
delayBeforeReply = 3000;
msg = "Waiting " + delayBeforeReply + " ms before processing the reply part.";
progressBar = new com.eviware.soapui.support.components.ProgressDialog("Wait", msg, delayBeforeReply, "0", true);
progressBar.setVisible(true);
for (int i=0;i<=delayBeforeReply;i++) {
Thread.sleep(1);
progressBar.setProgress(i, ""+i);
}
progressBar.setVisible(false);
progressBar.dispose();
Do you have any solution ? What's wrong with my code ?
Kind regards,
Arnaud.