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

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

Re: [QF-Test] accessing local variable in an SUT script

  • Subject: Re: [QF-Test] accessing local variable in an SUT script
  • From: "Michaelis, Mark" <mark.michaelis@?.com>
  • Date: Tue, 12 Jun 2007 08:10:59 +0200

Hello Maryam,
well, if there is any FMM (Frequently Made Mistake :-) ) it seems to be using variables directly in SUT-Scripts. Change the lines:
#get types of links
value1 = $(linkType1)
value2 = $(linkType2)
#get types of links
value1 = rc.lookup("linkType1")
value2 = rc.lookup("linkType2")
and I guess everything will work fine.
Mark Michaelis
Software Engineer Quality Assurance

Ludwig-Erhard-Str. 18
20459 Hamburg, Germany

Any content, anywhere, in a trusted universe:
CoreMedia CMS, CoreMedia DRM, CoreMedia Mobile TV
CoreMedia AG
Executive Board: Sören Stamer (CEO), Dr. Klemens Kleiminger (CFO)
Supervisory Board: Prof. Dr. Joachim Schmidt (Chairman)
Trade Register: Amtsgericht Hamburg, HR B 76277


From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On Behalf Of Maryam Umar
Sent: Monday, June 11, 2007 6:08 PM
To: qftest-list@?.de
Subject: [QF-Test] accessing local variable in an SUT script

Hi all,

I have the following sequence in my test case:

-          set variable (to some default value)

-          use an SUT script to get a new value for this variable; reset value of variable using setLocal

-          do some processing

-          use another SUT script to get the value of the same variable using $(variableName)

This sequence, when run, shows that the value of the variable has been picked up by the latter script, but also gives a NameError message. Can somebody please tell me where I am going wrong?



Maryam Umar

p.s. attached is the run-log file for the latter script

Attachment: smime.p7s
Description: S/MIME cryptographic signature