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] Override existing pdf
Hi Kevin, You may call the procedure qfs.shellutils.copy [1] in order to copy the pdf file first. You can use <path>/${qftest:runid}.pdf [2] (or something similar) here in order to get copy the file to a unique location ... Then terminate/close the "Adobe Acrobat Reader" process (see below). And then delete the original pdf file via the procedure qfs.shellutils.deleteFile [3]. Terminating a process: Windows: You can close a window via the procedure "qfs.autowin.close" [4]. In most cases this terminates the process too. Linux/Mac: If you only have one opened "Adobe Acrobat Reader" process (or if you want to close all opened adobe readers), you can run a command like: killall -9 adobereader via an 'Execute shell command' node [5]. Greetings, Yann [1] https://archive.qfs.de/fr/bibliotheque-standard.html#qfs.shellutils.copy [2] https://www.qfs.de/en/qf-test-manual/lc/manual-en-user_variables.html#usec_variables [3] https://archive.qfs.de/fr/bibliotheque-standard.html#qfs.shellutils.deleteFile [4] https://archive.qfs.de/fr/bibliotheque-standard.html#qfs.autowin.close [5] https://www.qfs.de/en/qf-test-manual/lc/manual-en-processes.html#step_ShellClientStarter Am 03.05.2018 um 10:07 schrieb Liu, Kevin (DPTI): Hi, Currently I am testing verifying the contents of printed pdfs using QF-TEST 4.2.2, and I’ve tried to call qfs.autowin.acrobat.savePDF with “overwriteExistingFile” set to true, but it prevents me from deleting the existing pdf file because It’s already opened in “Adobe Acrobat Reader DC”, So if I want to save one opened pdf to a different name and then close the opened pdf tab (with the different name) within “Adobe Acrobat Reader DC” so that it won’t prevent me from deleting the existing pdf file when I re-run the test, how can I do that? Thanks in advance Kevin _______________________________________________ qftest-list mailing list qftest-list@?.de https://movement.qfs.de/mailman/listinfo/qftest-list -- Yann Felix Spöri E: yann.spoeri@?.de T: +49 8171 38648-21 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.