2019 jusqu'à présent |  2018  2017 | 2016 | 2015 | 2014 | 2013 | 2012

Liste de diffusion - Entrées de 2012

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

Re: [QF-Test] How copy a distant file with scripts?

  • Subject: Re: [QF-Test] How copy a distant file with scripts?
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Tue, 23 Oct 2012 19:02:07 +0200

Hello Clement, Peter,

to enter a password, you can use the procedure


from 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,

--On Dienstag, Oktober 23, 2012 11:47:41 +0200 "Peter Kratzer (IT Consultant)" <esocontract@?.eu> wrote:


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



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

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

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