Forum Discussion

saranoor's avatar
saranoor
Frequent Contributor
6 years ago
Solved

How to test UI in Test complete

I am testinga page with two different user permisiions.

User1 has permission to read, write and Update.

User2 has permission to read only.

 

I have written the keyword test for USER1 but I do not know how to write the keywors test for User2. Buttons for Add are not existing for User2 so the keyword test needs to validate that the Add and Save buttons are not existing.

 

  • In the keyword test operations list, there's an operation of "if object" which can test if the object exists, is enabled, is visible, etc.  You could use a regular "if..then" and do the same thing with any properties you wish.  

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    In the keyword test operations list, there's an operation of "if object" which can test if the object exists, is enabled, is visible, etc.  You could use a regular "if..then" and do the same thing with any properties you wish.  

    • saranoor's avatar
      saranoor
      Frequent Contributor

      If Object Aliases.browser.pageEcs360.panelEcs360Container.panel.panelStandardparagraphdetail.panelDetailactionbuttons.panelColMd12ColSm12.buttonAdd Not exists

       

      Does this look corrcet?

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Yes... that looks right based upon the Keyword test operation.