Mailingliste - Einträge 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] How copy a distant file with scripts?
Hello Clement, Peter, to enter a password, you can use the procedure qfs.client.sendInputfrom the library qfs.qft (included in all test-suites by default). That is, you may try something like this:
+Sequence: File transfer client: cmd +Execute shell command: scp user@host:/my/file /dest/path [$(client)] +Call procedure: qfs.client.sendInput input: password addNewline: true +Wait for process to terminate [$(client)] Timeout: 30000 Best regards, Robert--On Dienstag, Oktober 23, 2012 11:47:41 +0200 "Peter Kratzer (IT Consultant)" <esocontract@?.eu> wrote:
Hi, in similar cases I add the following option to the ssh command: -o BatchMode=yes Prerequisite: the test user/host must be configured in the target's .ssh directory (known hosts, authorized keys) so that the login does not require a password. If this does not work the ssh command with the above option returns with an error message instead of waiting for password input. Regards, Peter On 22/10/2012 18:02, MEVEL Clement wrote:Hello all, In my project I need to retrieve various files from the server to analyze them with QFT. I am working on how I can get them from the server. I didn't succeed with scp since the module is not recognized in the Jython script embarked in QFT. I tried then the following script: " import os os.system(scp USER@SERVER:/SERVER_FILE_PATH LOCAL_FILE_PATH) " The command is well interpreted but the password is required to finalize the connection and I don't know how I can pass it. Any ideas? _______________________________________________ qftest-list mailing list qftest-list@?.de http://www.qfs.de/mailman/listinfo/qftest-list
-- QFS Support - Robert Lahmer Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-20 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 140833