Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Script to bypass user input automatically

reactancexl
reactancexl Posts: 160

I need to call a executable that requires entering a password manually after it is executed. What I want to do is use the external tool to pass in 2 parameters which one of them is the value the executable prompts. I need this to run automatically by entering the password automatically. Has anyone done this type of scenario? I am open to extension tools also. thx

Tagged:

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    edited January 2018

    It depends on how the executable can read those two parameters. If the executable can read them as command line arguments then you can try adding them to the External tool's flag/argument table. Otherwise, if the executable reads those parameters from the standard input (stdin) then you can try putting your arguments in the External tool's Input tab. The standard input (stdin) is typically how a process reads keyboard input, for example.