How to search and validate results in Global search in usin ATF

Smruti Das1
Mega Contributor

I want to test a Global Search bar. 

I am using "Set component filed value"

Next i want enter or click on the magnifying glass for the search to proceed ? how to do that

Also i want to verify the search results and number of results

1 REPLY 1

Janithi Wijesek
Tera Contributor

Hi Smruti Das1,

I hope you are referring to the Global Search on the Service Portal. If yes, please try the following.

 

1. You can use the step 'Set Component Values (Custom UI)' and retrieve the components in the service portal. (The previous step has to be the navigation to your service portal).

2. Out of the retrieved components search for the Global Search which is a combo box <input>.

JanithiWijesek_0-1671441006933.png

3. Then use the step 'Set Component Values (Custom UI)'  to send values to the search element.

4.  Use the 'Click Component (Custom UI)' to click on the search button. You need to pick the correct component.

JanithiWijesek_1-1671441485526.png

 

Hope this helped! 🙂