List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] QF-Test 4.0.11 - Linux session Queries

  • Subject: Re: [QF-Test] QF-Test 4.0.11 - Linux session Queries
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Wed, 25 Jan 2017 13:47:56 +0100

Hello Sushma,

the ssh procedures and scripts in the qfs.qft library are based on

Unfortunately there is no simple way to send a password through such a
channel because by default programs like su read it from the
associated terminal and not from standard input.

Instead of logging in as one user and switching to another user with
su, why can't you set up the .ssh/authorized_keys for the other user
so that you can login directly as that user?

Regarding your first question: The output from the ssh server is the
return value of the qfs.utils.ssh.session.send procedure and you'll
find it there in the run-log.

Also, when you call the close procedure you can pass the name for a
result group via its parameter resultGroupName. QF-Test binds the
collected output and the exit code of the session in that result
group, so after you call

qfs.utils.ssh.session.close (resultGroupName=sshres)

${sshres:exitCode} expands to the session's exit code and
${sshres:stdout} to the collected output to stdout and stderr.

Best regards,

Sushma Venumuddala <SVenumuddala@?.com> writes:

> Hi QF-Test Experts,
> It would be much helpful for us, if you provide solutions or suggestions to the below query.
> We are working on Connecting to a remote server by ssh. For this we have found the standard procedures for ssh at
> qfs.utils.ssh.session.
> We are able to connect to the Linux machine, but
> 1. How to view the connected session, like if we have any terminal for the session
> 2. How to pass "su - user1" and password using the procedures
>         I can see the below Message when i send su - user1 , but not able to provide password using the procedures
>         [cid]
> The QFTest Version we use is QF-Test 4.0.11
> Thanks in Advance
> [cid]
> Sushma Venumuddala | Quality Assurance Engineer
> Portware India Pvt Ltd
> #404.Building14.Raheja Mindspace IT Park
> Hitech City, Hyderabad 500081
> Phone: +91.40.44640000 ext. 1191
> Email: svenumuddala@?.com
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de

Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH |
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833