Mailingliste - Einträge 2006


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

[qftestJUI] Ref. QftestJUI 1.08.5 / conditional statement and regex without resorting to scripts.


  • Subject: [qftestJUI] Ref. QftestJUI 1.08.5 / conditional statement and regex without resorting to scripts.
  • From: "Adrian Chamberlain" <Adrian.Chamberlain@?.com>
  • Date: Wed, 19 Apr 2006 13:34:48 +0100

Ref. QftestJUI 1.08.5 / conditional statement and regex without resorting
to scripts.

Hi,

I effectively wish to do the following using an 'IF' node and avoiding
resorting to the use of SUT/Server scripts.

If search("([O]|[o])([C]|[c])([H]|[h])", rc.lookup("signalType")) == true
     etc.

is there anyway to achieve the above?

Basically I have a qfs procedure with a parameter named 'signalType'.  The
signal type can be either ODU-1, OCh or VC-4.  Consequently I have
conditional statements which use the signal type to determine which popmenu
menu should be displayed etc.  Without going into to too much detail, the
basic problem is that the application in question (lazy developers!!) is
not being consistent with respect to the case of letters of the signal type
string.  Consequently the signal type OCh can be "Och" in some combo box's
etc. and yet "OCH" or "OCh" elsewhere in the application.  So how does one
include a condition in the 'If' node which utilises a regular expression?

Any tips would be appreciated.

Thank you in anticipation of your help
Kind Regards
Adrian




Videos Downloads Dokumentation Kaufen Gratis Testen