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

2017 bis heute 2016 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] accessing url in python script


  • Subject: Re: [QF-Test] accessing url in python script
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 26 Nov 2007 12:07:13 +0100

Hi Maryam,

that's not going to work, you need to start the SUT from a 'Start
(Java) SUT client' node in order to set up the connection.

You can use ${env:XXX} or rc.lookup("env", "XXX") to look up an
environment variable in QF-Test.

I suggest you use a jython script (if necessary) to determine the URL,
close this with

rc.setLocal("url", ...)

then follow this with a 'Start SUT client' node with appropriate
parameters where you can reference $(url).

Best regards,
    Greg

"Maryam Umar" <maryam.umar@?.com> writes:

> Hi Greg,
>
> I should have been more precise. This is what I am trying to achieve:
> - not use 'Start SUT client' node; use a python/jython script instead which
> helps me start client
> - based on the environment (get Username of environ through python) I am
> trying to start the client in, I want to specify programmatically what url
> to use when launching the browser
>
> Thanks.
>
> Maryam
>
> ----
> Software Application Tester
> Integra SP Ltd
> maryam.umar@?.com
> -----Original Message-----
> From: Gregor Schmid [mailto:Gregor.Schmid@?.de]
> Sent: 23 November 2007 13:21
> To: qftest-list@?.de
> Cc: maryam.umar@?.com
> Subject: Re: [QF-Test] accessing url in python script
>
>
> Hi Maryam,
>
> it is not clear to me what you are talking about. Python or Jython?
> Which URL? What's the URL used for?
>
> If you mean to say that QF-Test starts a Python script which in turn
> launches your SUT, you can pass parameters to the script via the
> "Parameters" attribute of the 'Start SUT client' node.
>
> Best regards,
>     Greg
>
> "Maryam Umar" <maryam.umar@?.com> writes:
>
> >    Hi all,
> >
> >
> >    I want to use a python script to startup a client in all my scripts. Is
> >    there some way of specifying the url programmatically in such a way
> >    that I can change it using variables? Doing this will help me port my
> >    scripts on multiple machines using virtual machines.
> >
> >
> >    Thanks.
> >
> >    Maryam Umar
> >
> >
> >    ----
> >
> >    Software Application Tester
> >
> >    Integra SP Ltd
> >
> >    maryam.umar@?.com

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