cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert checkpoint to check the value not exists in one of column on web page

techgirlbb
Contributor

How to insert checkpoint to check the value not exists in one of column on web page

During my scripting for web application, one of the scenario came across as

 verification of requester name not present under approver column in the table. Table data is not static.

Ex: Table contains different columns(state, Approver, comments, crated)

Approver column contains 5 names ( Test name1, Test name2,Test name3, Test name4 ,Test name5). I need to validate 

 requester name "Test Name 6" not present under Approver Column.

 

 

Can you through some suggestions.?

 

 

Thanks in advance

 

3 REPLIES 3
cunderw
Community Hero

Re: How to insert checkpoint to check the value not exists in one of column on web page

I would approach this with something like FindChiledEx from the table object and then do a property checkpoint on the result and verify Exists equals false.

 

Or if the row does exist and you can find it based on some other criteria, find the row and then do a property check point on the table using wValue and verifying that the cell does not contain the name. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
techgirlbb
Contributor

Re: How to insert checkpoint to check the value not exists in one of column on web page

" I would approach this with something like FindChiledEx from the table object and then do a property checkpoint on the result and verify Exists equals false. " can you detail little more  

 

In test complete document they have given FindChiledEx or FindEx for finding from Notepad. 

How does it works for Table. pls refer the attachment. Rows are not constant.they will vary as well approvers name also

cunderw
Community Hero

Re: How to insert checkpoint to check the value not exists in one of column on web page

The same basic principle for using find methods applies to any on screen object. 

 

For some web specific examples see:

 

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/finding-objects...


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors