The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to 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. Functional cookies
We use functional cookies to ensure the basic functionality of the website.
2. Performance and statistic cookies
We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
This cookie is used to track from which website the anonymized user proceeded to our website.
The Matomo session cookie is used to track the visitor's page requests during the session.
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.