cancel
Showing results for 
Search instead for 
Did you mean: 

How to test UI in Test complete

SOLVED
Frequent Contributor

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: How to test UI in Test complete

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.  


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: How to test UI in Test complete

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.  


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

Highlighted
Frequent Contributor

Re: How to test UI in Test complete

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

 

Does this look corrcet?

Highlighted
Community Hero

Re: How to test UI in Test complete

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


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available