baxatob's avatar
baxatob
Community Hero
8 years ago
Status:
New Idea

Using the variables in properties of the Stored Object

Currently we can use variable only in the Property Checkpoints.

I propose to extend this feature to the Object Checkpoints, too.

 

5 Comments

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Does this work for you?  It doesn't come up in the wizard but you can edit the checkpoint after you create it and use a variable.

     

     

     

  • baxatob's avatar
    baxatob
    Community Hero

    Hi Marsha,

     

    That is not exactly what I mean. 

     

    I have a number of complex objects, which contain a lot of nodes and each node consists of several properties.

    Some of properties can have a different values in different tests. E.g. I have a page in application with some textbox. This textbox has a placeholder property. Depending on user type this property can be = "required" or "optional". And there are few similar elements on that page.

     

    Currently I need to design the separate object for each test (user type). But if I can assign a variable to the mentioned property value, I need only one object.

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    We build strings to use variables as part of an object

     

    eval("Aliases.QAD_Client.ShellForm.MdiClient." & KeywordTests.MaintainProfile_AddAttributes.Parameters.MappedName &".zmainPanel.BrowseTabbedPageControl.AssociatedControl.zmainContainer.SplitterPanel_1.ztabManager."&KeywordTests.MaintainProfile_AddAttributes.Variables.ProfileDef & ".zmainContainer.SplitterPanel.BrowseControl.zsplitContainer.SplitterPanel_1.DTApplication.DTApplication_Fill_Panel")

     

    the MappedName and ProfileDef vary with the section being tested

     

    Would something like that help?

     

  • baxatob's avatar
    baxatob
    Community Hero

    Hi Marsha,

     

    I do not see how to use your approach while creating the Objects in the Stores, because I can't assign a code expression as a value of the property of the stored object. I only can use a constant values.