Forum Discussion

william_roe's avatar
william_roe
Super Contributor
9 years ago

Testing Exists on WaitAlias Child in Keyword Test

How do you test the exists on a WaitAlias child in a Keyword test? The online example show how to do it in script but I'm moving away from script because changes to mapped object name(s) not refactor in script like references in Keyword Tests. 

 

  • You could

    1) Write a library routine to execute this method

    2) Pass the ParentObject and property arrays as parameters.

    3) Call this unit from the keyword tests.

     

    This also eliminates your concern about changes to mapped objects.


  • djadhav wrote:

    You could

    1) Write a library routine to execute this method

    2) Pass the ParentObject and property arrays as parameters.

    3) Call this unit from the keyword tests.

     

    This also eliminates your concern about changes to mapped objects.


    Is a 'library routine' script?

  • djadhav's avatar
    djadhav
    Regular Contributor

    You could

    1) Write a library routine to execute this method

    2) Pass the ParentObject and property arrays as parameters.

    3) Call this unit from the keyword tests.

     

    This also eliminates your concern about changes to mapped objects.

    • william_roe's avatar
      william_roe
      Super Contributor

      djadhav wrote:

      You could

      1) Write a library routine to execute this method

      2) Pass the ParentObject and property arrays as parameters.

      3) Call this unit from the keyword tests.

       

      This also eliminates your concern about changes to mapped objects.


      Is a 'library routine' script?

      • djadhav's avatar
        djadhav
        Regular Contributor

        :smileyhappy: Yes it is. But this is a library script so it should not have any direct references to any mapped objects, rather they should be passed as parameters.