| || |
Constant of a user defined data type, is this possible?
User Jim O'Brien (firstname.lastname@example.org) posted:
Is it possible to set a 'Type' structure to a constant?
What I want to do is this:
In an html application, there are 30 editboxes that are prone to
appearing/disappearing, changing etc. (consultants as developers, gives me
the shivers, but's that's another forum methinks...)
These editboxes all have unique names that I initially gave a constant
value which Robot digested nicely:
Const NULL_edbx_ADMIN_FEE = "Type=EditBox;Name=Loan_Admin_Fee"
Realizing that this would make for possible confusion with identifying
which constants go with which page, I thought the easiest thing to do
would be to create a type structure and assign the constants through
AdminFee as String
LossGain as String
And then somehow set the Null_Page.AdminFee to a Constant. Robot does not
like the following though ('Error: Syntax Error' is the message).
Const Null_Page.AdminFee = "Type=EditBox;Name=Admin_Fee"
Const Null_Page.LossGain = "Type=EditBox;Name=Loss_Gain"
Is there a way in SQA to do this or does anyone use a different approach
to something like this?
Any help would be appreciated.
Re: Constant of a user defined data type, is this possible?
User PHIL BEVAN (PHIL.BEVAN@thales-cs.com.nospam) posted:
Not that I know of, my approach would be, if its to be constant data, to
create a sub called initdefaultvalues and then use this to setup all values,
call it in the Main.
Sorry, but you can't assign it like you want.