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

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 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)
rc.logMessage(value1)
 
value2 = $(linkType2)
rc.logMessage(value2)
 
to
 
#get types of links
value1 = rc.lookup("linkType1")
rc.logMessage(value1)
 
value2 = rc.lookup("linkType2")
rc.logMessage(value2)
 
and I guess everything will work fine.
 
Regards
    Mark
 
--
Mark Michaelis
Software Engineer Quality Assurance

CoreMedia
Ludwig-Erhard-Str. 18
20459 Hamburg, Germany
www.coremedia.com 

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

Thanks.

Regards,

Maryam Umar

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

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


Videos Downloads Documentation Buy Free Trial