La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] QF-Test 4.0.11 - Linux session Queries
Hello Sushma, the ssh procedures and scripts in the qfs.qft library are based on Jsch: http://www.jcraft.com/jsch/ 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, Greg 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 > www.portware.com > > _______________________________________________ > qftest-list mailing list > qftest-list@?.de > https://archive.qfs.de/mailman/listinfo/qftest-list -- Gregor Schmid E: gregor.schmid@?.de T: +49 8171 38648-11 F: +49 8171 38648-16 Quality First Software GmbH | www.qfs.de Tulpenstr. 41 | 82538 Geretsried | Germany GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer HRB München 140833
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.