Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2016 bis heute 2015 | 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

Re: [QF-Test] qftest return code (Windows)


  • Subject: Re: [QF-Test] qftest return code (Windows)
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 20 Oct 2007 16:53:42 +0200

Hi Michael,

for one things you get the run-log with detailed information about the
test-run. If the test does not run as you expect, that's the first
place to look.

Also, QF-Test does exit with specific exit codes as described i manual
section 20.3. 0 means everything is OK otherwise there were problems.

Unless I'm mistaken, on Windows you can use errorlevel to check for
the exit code like:



qftest -batch ...
if errorlevel 0 goto allok
echo "There was an error in the test-run"
goto done
:allok
echo "Everything fine"
:done


On unix you'd check $? instead, i.e.

if [ $? == 0 ]; then
echo "Everything fine"
else
echo "There was an error in the test-run"
fi

Best regards,
    Greg


"Michael Werner" <michael.werner@?.com> writes:

>    Hi,
>
>
>    I was looking at qf-test fort he first time today. I came along quite
>    well with the examples, and created a small testcase for our
>    application within no time. But then I ran qftest in the batch mode and
>    was wondering. The Application seems to be executed (I see the windows
>    open quickly, and close again) but the command has already returned to
>    the shell, so I wonder how the return code of the Application should be
>    checked in the batch mode (e.g. to execute a qftest-test in an
>    overnight job, checking the return codes for quick interpretation).
>
>
>    I tried it with the Options.qft from the Tutorial, too and it is the
>    same. Here is the command:
>
>    >qftest-2.1.0\bin\qftest -license license -batch
>    qftest-2.1.0\doc\tutorial\Options.qft
>
>
>    The OS is WinXP SP2, jre 1.5.0_03
>
>
>    Regards Michael
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833



Videos Downloads Dokumentation Kaufen Gratis Testen