Forum Discussion

AnandKiran's avatar
AnandKiran
Frequent Contributor
15 years ago
Solved

Is there a possibility to pop up Input Box using Java script in SOAP UI 3.0

Hi Ole,

Can any one let me know whether is it possible to display a Input Text Box in SOAP UI 3.0 using Java script. Please let me know if you have already done this.

Regards
Anand
  • I found the solution use Java Swing (      import javax.swing.*;) in your script to enable this functionality
     
    Then use the below code to get an input box.
    String name=JOptionPane.showInputDialog("Enter your name pls.");

    Hope this answers your issue.



    Regards
    Anand

3 Replies

  • AnandKiran's avatar
    AnandKiran
    Frequent Contributor
    I found the solution use Java Swing (      import javax.swing.*;) in your script to enable this functionality
     
    Then use the below code to get an input box.
    String name=JOptionPane.showInputDialog("Enter your name pls.");

    Hope this answers your issue.



    Regards
    Anand
    • Nilesh's avatar
      Nilesh
      Occasional Contributor

      Thanks Anand.. It worked for me :)