Execute Shell Scripts from Parasoft SOATest Tool

aflorenceaflorence Posts: 7
edited February 7 in SOAtest

Hi,

I have to execute few shell script commands using GIT BASH to encrypt and decrypt key. I tried to automate this using SOATest tol. I have added external tool and passed the path of git bash as below

After this GIT bash is opened, I want to type few commands automatically like below:

ssh [email protected] -p 22

I passed this value in input section. But I don't see this command getting typed in the bash command prompt. Could you please guide me how to type this command in the opened prompt and also how to pass next few lines of command for typing the password and capturing the key that got generated.

Comments

  • jakubiakjakubiak Posts: 517 admin

    What you are trying to do would only work if you can pass the commands as command-line arguments to git-bash. The External Tool simply runs the executable, passing along any arguments that are specified in the table.

  • benken_parasoftbenken_parasoft Posts: 691 ✭✭✭

    As an argument to your bash.exe, I would pass the path to a script containing the commands you want bash to execute. Either that, or create multiple External Tools, one for every command you want executed.

Sign In or Register to comment.