2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2013


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

Re: [QF-Test] web test - open file option


  • Subject: Re: [QF-Test] web test - open file option
  • From: "Thomas Max, QFS Support" <support@?.de>
  • Date: Thu, 14 Feb 2013 15:48:56 +0100

Hello,

Please try to start your browser engine with the following parameter:

- Dde.itcampus.meex2.override_file_ext=.face

This should trigger to download-dialog for the .face-file.

If this is not working please provide us with the complete content of the
file which should trigger the download.


Best regards,
   Thomas

--
Get the most out of QF-Test - through training directly from the authors
* via webinar       http://www.qfs.de/en/info/OnlineTraining_QF-Test.pdf
* here at QFS             http://www.qfs.de/en/info/Training_QF-Test.pdf
------------------------------------------------------------------------
QFS Support - Thomas Max
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



> -----Original Message-----
> From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On
> Behalf Of Angelescu Mihai
> Sent: Thursday, February 14, 2013 11:18 AM
> To: qftest-list@?.de
> Subject: Re: [QF-Test] web test - open file option
>
> related with the open/save a file
>
>
> I'm using  Richfaces and I have this code which normally open the
> open/save dialog for the file with the name specified as
> parameter....using the QF-test the bahaviour is the same only
>
> if I'm using Firefox as browser....if I'm using IE (any compatible
> mode) the browser is trying to open a file with extension .face (in
> fact, the content is the source code of the page)....any ideea ?
>
>
> the values
> sDocumentText = "some text"
> sDocumentName= DFUH9848214.edi
>  oCharset = windows-1250
> sau
> oCharset = UTF-8
>
> protected void downloadDocument(String sDocumentText, Charset oCharset,
> String sDocumentName) throws Exception {
>     final FacesContext facesContext =
> FacesContext.getCurrentInstance();
>     HttpServletResponse resp = (HttpServletResponse)
> facesContext.getExternalContext().getResponse();
>     ServletOutputStream op = resp.getOutputStream();
>
>     resp.setContentType("application/octet-stream; charset=" +
> oCharset.name());
>     resp.setContentLength(sDocumentText.length());
>     resp.setHeader("Content-Disposition", "attachment; filename=\"" +
> sDocumentName + "\"");
>
>     for(byte b : sDocumentText.getBytes(oCharset.name()))
>     {
>         op.write(b);
>     }
>     op.flush();
>     op.close();
>     facesContext.responseComplete();
> }
>
>
>
>
>
> ________________________________
>
> From: "Michael Höber, QFS Support" <support@?.de>
> To: 'Angelescu Mihai' <angel.mihai@?.com>; qftest-list@?.de
> Sent: Tuesday, February 12, 2013 10:12 AM
> Subject: RE: [QF-Test] web test - open file option
>
>
> Hello,
>
> Before a file selection dialog is displayed the QF-Test browser is
> showing up a small dialog with an OK-/Cancel-button. This helper dialog
> is needed by QF-Test to get the data out of the file selection dialog
> since this dialog is created natively by the operating system. After
> clicking the OK-button in the helper-dialog the native file selection
> dialog is displayed and you can enter the filename or select the file
> directly.
> QF-Test allows to save the file or cancel the download. If you want to
> execute or open the file please use a 'Start process' or 'Execute shell
> command' afterwards, c.f.:
> http://www.qfs.de/qftest/manual/en/processes.html#step_ProcessClientSta
> rter
> http://www.qfs.de/qftest/manual/en/processes.html#step_ShellClientStart
> er
> If you want to open a file which is not an executable, e.g. a .txt-
> file, you can use an 'Execute shell command' node and run:
> Windows:
> start C:\somePath\somefile.txt
> Linux:
> xdg-open /somePath/somefile.txt
> This will open the .txt-file with the configured default application,
> e.g. Notepad or your default .txt-file editor.
>
> Best regards,
>      Michael
>
> --
> Get the most out of QF-Test - through training directly from the
> authors
> * via webinar       http://www.qfs.de/en/info/OnlineTraining_QF-
> Test.pdf
> * here at QFS             http://www.qfs.de/en/info/Training_QF-
> Test.pdf
> -----------------------------------------------------------------------
> -
> QFS Support - Michael Hoeber
> 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
>
>
> From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On
> Behalf Of Angelescu Mihai
> Sent: Friday, February 08, 2013 8:02 AM
> To: qftest-list@?.de
> Subject: [QF-Test] web test - open file option
>
> Hello,
>
>
> I'm a beginner in using the QF-test...I searched, but no answer to my
> question :for a web test, I have a link in my page to a
> file....normally, when I click the link, in  the native window  there
> is an option also
> to open the file.....  in the Qftest download dialog there are only 2
> options : OK , which will open the saveAs native dialog and
> cancel....how can I manage to have also when running the test the "open
> file "  option ?
>