Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 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 2007


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

Re: [QF-Test] qftest-list Digest, Vol 36, Issue 1


  • Subject: Re: [QF-Test] qftest-list Digest, Vol 36, Issue 1
  • From: "Derrik Ammons" <dammons@?.COM>
  • Date: Thu, 16 Aug 2007 11:48:14 -0700

Regarding the part that states:

"Of course, you are not bound to QF-Test Server scripting when
controlling the QF-Test daemon. You can as well write a little Java
application to do this job (what will furthermore not consume an
additional license)."

Which jar file contains the DaemonRunContext, DaemonLocator, and other
necessary classes so I can place it in my class path to instantiate
those objects in my java code from my IDE?

Thanks,

Derrik Ammons

-----Original Message-----
From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On
Behalf Of qftest-list-request@?.de
Sent: Wednesday, August 01, 2007 3:00 AM
To: qftest-list@?.de
Subject: qftest-list Digest, Vol 36, Issue 1

Send qftest-list mailing list submissions to
	qftest-list@?.de

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.qfs.de/mailman/listinfo/qftest-list
or, via email, send a message with subject or body 'help' to
	qftest-list-request@?.de

You can reach the person managing the list at
	qftest-list-owner@?.de

When replying, please edit your Subject line so it is more specific than
"Re: Contents of qftest-list digest..."


Today's Topics:

   1. qf -test daemon (George Comanescu)
   2. Re: qf -test daemon (Robert Lahmer, QFS support)
   3. Re: qf -test daemon (Gregor Schmid)
   4. Direct element access from the end of the item node list
      (David_Downey@?.com)
   5. Re: Direct element access from the end of the item node	list
      (Gregor Schmid)


----------------------------------------------------------------------

Message: 1
Date: Tue, 31 Jul 2007 11:50:44 +0200
From: "George Comanescu" <george.comanescu@?.com>
Subject: [QF-Test] qf -test daemon
To: <qftest-list@?.de>
Message-ID: <003e01c7d358$43c49d10$851adc0a@?.ro>
Content-Type: text/plain; charset="us-ascii"



Hello I have a series of tests which I want to run automatically

And the documentation from Qf-test it's not clear to me.

So I must start a service (in Windows )

Something like this :

qftest -daemon -port 6600 -batch

How do I connect from an other computer using a client and specify to
him which tests must be run .

And from where to take it ?

Thank you,

G.

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.qfs.de/archive/qftest-list/attachments/20070731/f5e7afbf/atta
chment.htm

------------------------------

Message: 2
Date: Tue, 31 Jul 2007 14:37:27 +0200
From: "Robert Lahmer, QFS support" <support@?.de>
Subject: Re: [QF-Test] qf -test daemon
To: qftest-list@?.de
Cc: George Comanescu <george.comanescu@?.com>
Message-ID: <A5FE76352526FAA554C3A7AE@[192.168.2.70]>
Content-Type: text/plain; charset=iso-8859-1; format=flowed


Hello George,

take the following lines as a Jython Server script example to execute a
test-case with a QF-Test daemon:


from de.qfs.apps.qftest.daemon import DaemonRunContext
from de.qfs.apps.qftest.daemon import DaemonLocator
from java.io import FileOutputStream, ByteArrayInputStream

# change the variable values accordingly
host = "localhost"
port = 5555
testcase = "h:\\rl\\qftest\\daemon\\daemon.qft#Test1"
logFile = "c:\\tmp\\myLog.qrl"

daemon = DaemonLocator.instance().locateDaemon(host, port)
if daemon != None:
  rc.logMessage("Daemon running, ...")
  testRunDaemon = daemon.createTestRunDaemon()
  if testRunDaemon != None:
    runContext = testRunDaemon.createContext()
    if runContext != None:
      rc.logMessage("Start Tests ...")
      runContext.runTest(testcase)
      rc.logMessage("... Tests gestartet.")
      runContext.waitForRunState(DaemonRunContext.STATE_FINISHED, 30000)
      try:
        result = runContext.getResult()
        rc.logMessage("Received result ... " + `result`)
      except:
        rc.logWarning("Testcase probably not finished yet - increase
timeout")
        raise
      try:
        runLog = runContext.getRunLog()
        fos = FileOutputStream(logFile)
        bai = ByteArrayInputStream(runLog)
        for b in range(len(runLog)):
          fos.write(bai.read())
        fos.close()
      except:
        pass
    else:
      rc.logError("Could not create run-context -> license!?")
  else:
    rc.logError("Could not create test-run-daemon!")
  ### Uncomment the following code line to terminate the daemon
  ### - otherwise you have to kill the daemon process.
  #daemon.terminate(0)
else:
  rc.logError("No daemon running!")


Before running the script within QF-Test, you have to start another
QF-Test
instance in daemon mode on the (remote) test-host (e. g. by means of shh
or
VNC):

  qftest -batch -daemon -daemonport 5555

Note that QF-Test does not run as a Windows Service. Further it is
assumed
in this example that you have a test-suite "daemon.qft" with a test-case

"Test1" on your test-host (as specified in the testcase variable above).

Of course, you are not bound to QF-Test Server scripting when
controlling
the QF-Test daemon. You can as well write a little Java application to
do
this job (what will furthermore not consume an additional license).

Best regards,
    Robert



--On Dienstag, Juli 31, 2007 11:50:44 +0200 George Comanescu
<george.comanescu@?.com> wrote:

>
>
> Hello I have a series of tests which I want to run automatically
>
> And the documentation from Qf-test it's not clear to me.
>
> So I must start a service (in Windows )
>
> Something like this :
>
> qftest -daemon -port 6600 -batch
>
> How do I connect from an other computer using a client and specify to
him
> which tests must be run .
>
> And from where to take it ?
>
> Thank you,
>
> G.
>
>



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




------------------------------

Message: 3
Date: 31 Jul 2007 14:50:52 +0200
From: Gregor Schmid <Gregor.Schmid@?.de>
Subject: Re: [QF-Test] qf -test daemon
To: qftest-list@?.de
Cc: George Comanescu <george.comanescu@?.com>, "Robert
	Lahmer,	QFS support" <support@?.de>
Message-ID: <n6fy34ka8j.fsf@?.de>
Content-Type: text/plain; charset=iso-8859-1


Hello George,

I just wanted to point out that you don't need to use daemon mode just
to run some tests automatically. The daemon is intended for
integration of QF-Test into an off-the-shelf or self-made test
environment.

For simple test-execution, batch mode invocation of QF-Test will do,
e.g.

    qftest -batch suite.qft

will run the top-level tests defined in suite.qft.

Please see manual chapter 20 about the (numerous) command line options
available. You may also want to read chapter 13 about how to create
reports automatically.

Best regards,
    Greg

"Robert Lahmer, QFS support" <support@?.de> writes:

> Hello George,
>
> take the following lines as a Jython Server script example to execute
> a test-case with a QF-Test daemon:
>
>
> from de.qfs.apps.qftest.daemon import DaemonRunContext
> from de.qfs.apps.qftest.daemon import DaemonLocator
> from java.io import FileOutputStream, ByteArrayInputStream
>
> # change the variable values accordingly
> host = "localhost"
> port = 5555
> testcase = "h:\\rl\\qftest\\daemon\\daemon.qft#Test1"
> logFile = "c:\\tmp\\myLog.qrl"
>
> daemon = DaemonLocator.instance().locateDaemon(host, port)
> if daemon != None:
>   rc.logMessage("Daemon running, ...")
>   testRunDaemon = daemon.createTestRunDaemon()
>   if testRunDaemon != None:
>     runContext = testRunDaemon.createContext()
>     if runContext != None:
>       rc.logMessage("Start Tests ...")
>       runContext.runTest(testcase)
>       rc.logMessage("... Tests gestartet.")
>       runContext.waitForRunState(DaemonRunContext.STATE_FINISHED,
30000)
>       try:
>         result = runContext.getResult()
>         rc.logMessage("Received result ... " + `result`)
>       except:
>         rc.logWarning("Testcase probably not finished yet - increase
> timeout")
>         raise
>       try:
>         runLog = runContext.getRunLog()
>         fos = FileOutputStream(logFile)
>         bai = ByteArrayInputStream(runLog)
>         for b in range(len(runLog)):
>           fos.write(bai.read())
>         fos.close()
>       except:
>         pass
>     else:
>       rc.logError("Could not create run-context -> license!?")
>   else:
>     rc.logError("Could not create test-run-daemon!")
>   ### Uncomment the following code line to terminate the daemon
>   ### - otherwise you have to kill the daemon process.
>   #daemon.terminate(0)
> else:
>   rc.logError("No daemon running!")
>
>
> Before running the script within QF-Test, you have to start another
> QF-Test instance in daemon mode on the (remote) test-host (e. g. by
> means of shh or VNC):
>
>   qftest -batch -daemon -daemonport 5555
>
> Note that QF-Test does not run as a Windows Service. Further it is
> assumed in this example that you have a test-suite "daemon.qft" with a
> test-case "Test1" on your test-host (as specified in the testcase
> variable above).
>
> Of course, you are not bound to QF-Test Server scripting when
> controlling the QF-Test daemon. You can as well write a little Java
> application to do this job (what will furthermore not consume an
> additional license).
>
> Best regards,
>     Robert
>
>
>
> --On Dienstag, Juli 31, 2007 11:50:44 +0200 George Comanescu
> <george.comanescu@?.com> wrote:
>
> >
> >
> > Hello I have a series of tests which I want to run automatically
> >
> > And the documentation from Qf-test it's not clear to me.
> >
> > So I must start a service (in Windows )
> >
> > Something like this :
> >
> > qftest -daemon -port 6600 -batch
> >
> > How do I connect from an other computer using a client and specify
to him
> > which tests must be run .
> >
> > And from where to take it ?
> >
> > Thank you,
> >
> > G.
> >
> >
>

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


------------------------------

Message: 4
Date: Tue, 31 Jul 2007 12:57:48 -0400
From: David_Downey@?.com
Subject: [QF-Test] Direct element access from the end of the item node
	list
To: qftest-list@?.de
Message-ID:

<OFE8EDB087.64A2682C-ON85257329.005BCC60-85257329.005D2EF7@?.com>
Content-Type: text/plain; charset="us-ascii"

What is the syntax for position from end of list or table? ...or is it
even possible?

something like the following (even though it didn't work)
table2@Event&-2

..would theoretically select the second from the last item in the Event

column of table2

David A. Downey
Software Quality Assurance Analyst
BD Technologies
919-597-6523

-----------------------------------------
*******************************************************************
IMPORTANT MESSAGE FOR RECIPIENTS IN THE
U.S.A.:
This message may constitute an advertisement of
a BD group's products or services or a
solicitation of interest in them. If this is
such a message and you would like to opt out of
receiving future advertisements or
solicitations from this BD group, please
forward this e-mail to optoutbygroup@?.com.
*******************************************************************
This message (which includes any attachments)
is intended only for the designated
recipient(s).  It may contain confidential or
proprietary information and may be subject to
the attorney-client
privilege or other confidentiality protections.
 If you are not a designated recipient, you may
not review, use, copy or distribute this
message. If you received this in error, please
notify the sender by reply e-mail and delete
this message. Thank you.
*******************************************************************
Corporate Headquarters Mailing Address: BD
(Becton, Dickinson and Company) 1 Becton Drive
Franklin Lakes, NJ 07417 U.S.A.
*******************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.qfs.de/archive/qftest-list/attachments/20070731/65532390/atta
chment.htm

------------------------------

Message: 5
Date: 31 Jul 2007 22:28:10 +0200
From: Gregor Schmid <Gregor.Schmid@?.de>
Subject: Re: [QF-Test] Direct element access from the end of the item
	node	list
To: qftest-list@?.de
Cc: David_Downey@?.com
Message-ID: <boy7gwiahx.fsf@?.de>
Content-Type: text/plain; charset=iso-8859-1


Hi David,

indeed, it's not that easy, though we should consider that, it would
be consistent with Jython slices.

For now, you need a combination with an SUT script:

rc.setLocal("rows", rc.getComponent("table2").getRowCount())

and then use table2@Event&$[$(rows)-2] to address the cell.

Best regards,
    Greg

David_Downey@?.com writes:

>    What is the syntax for position from end of list or table? ...or is
it
>    even possible?
>    something like the following (even though it didn't work)
>    table2@Event&-2
>    ...would theoretically select the second from the last item in the
>    Event column of table2
>    David A. Downey
>    Software Quality Assurance Analyst
>    BD Technologies
>    919-597-6523
>      _________________________________________________________________
>
>    *******************************************************************
>    IMPORTANT MESSAGE FOR RECIPIENTS IN THE U.S.A.: This message may
>    constitute an advertisement of a BD group's products or services or
a
>    solicitation of interest in them. If this is such a message and you
>    would like to opt out of receiving future advertisements or
>    solicitations from this BD group, please forward this e-mail to
>    optoutbygroup@?.com.
>    *******************************************************************
>    This message (which includes any attachments) is intended only for
the
>    designated recipient(s). It may contain confidential or proprietary
>    information and may be subject to the attorney-client privilege or
>    other confidentiality protections. If you are not a designated
>    recipient, you may not review, use, copy or distribute this
message.
>    If you received this in error, please notify the sender by reply
>    e-mail and delete this message. Thank you.
>    *******************************************************************
>    Corporate Headquarters Mailing Address: BD (Becton, Dickinson and
>    Company) 1 Becton Drive Franklin Lakes, NJ 07417 U.S.A.
>    *******************************************************************


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


------------------------------

_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list


End of qftest-list Digest, Vol 36, Issue 1
******************************************



Videos Downloads Documentation Buy Free Trial