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]

[QF-Test] Help regarding Unknown property dialog


  • Subject: [QF-Test] Help regarding Unknown property dialog
  • From: "Alfred Mathavan" <amathava@?.com>
  • Date: Wed, 4 Apr 2007 00:18:50 -0600

Hi ,

 

Senario:-

 

When I try to fetch a property by substituting dynamic value to the key(PropertyName) to the syntax $(GroupName:PropertyName) I get an Unknown property Error Dialog.

 

Ref:-

Property File Content

Switches.300 = ['172.31.11.181',]

Switches.400 = ['172.31.11.182',’172.31.11.182',]

Switches.valueChoices=['300','400',]

 

Server Script that gets executed in a for loop with respect to the number of valueChoices

 

            name = ${SwitchGroup:Switches.valueChoices}[$(i)]

rc.setLocal('switchname',name)

 

rc.setLocal('type',"Switch."+str(rc.lookup('switchname')))

 

print rc.lookup('type')                              ------------------------------------------------------à Prints Switches.300

print ${SwitchGroup:Switches.300}          ------------------------------------------------------à Prints ['172.31.11.181']

 

print ${SwitchGroup:rc.lookup('type')}       -----------------------------------------------------à

 

 

Could you let me know where I am going wrong?

 

Greetings,

Alfred