Accessing "global" context

Scott Lowrey slowrey at nextone.com
Thu Jan 15 20:57:55 UTC 2004


After digging thru the archive and poring over the manual, I can't 
figure out how to get a test class to recognize context variables that 
are created in the "Edit Context" screen (or specified on the command 
line by the -C and -c run options). 

Accessing context created by resources is no problem - these are visible 
in the context dictionary passed to the Run() method.  But I haven't 
discovered where the "other" context information is loaded; the book 
doesn't clarify this beyond implying that the two contexts are the same 
and that they are visible to the test classes.

I'd like to be able to set up session-specific context that doesn't 
require the user to go in and edit a bunch of resources.  For example, 
my tests are all network oriented; they need IP addresses fed to them 
that vary with each user.  I can do this easily via a resource, but if 
then the (context-specific) IP addresses are stored in the database with 
the resource.  That doesn't seem right - now the resources need to be 
edited between users and, in the case of a shared database, would cause 
all kinds of headaches.

What am I missing?
-- 
*Scott Lowrey*
NexTone Communications
Germantown, Maryland

/(240)912-1369/
www.nextone.com <http://www.nextone.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20040115/01ac53d2/attachment.html>


More information about the qmtest mailing list