Processor KnowledgeHomeLauncher prevents ATF from entering Knowledge Home properly

Bartosz Glowac1
Tera Contributor

We have encountered issue in our ATFs with entering Knowledge search page rather than Knowledge Home.

We have reproduced that effect in ServiceNow PDI and tracked that Processor KnowledgeHomeLauncher is responsible for this.
https://<instance>.service-now.com/nav_to.do?uri=sys_processor.do?sys_id=2531f7009f003100a04d7e50d67fcf32
according to script lines 21-26
When user is entering the Self-Service-> Knowledge module the url does not contain any parameters and Knowledge home is present.
However, when ATF executes the 'Navigate to Module' step, the url used by ATF contains characteristic parameters as sysparm_rollback_context, sysparm_atf_test_result_sys_id and so on, and according to the script, the search page is being opened. Therefore any further step that verifies knowledge home page content fails.

 

Steps to reproduce:
Feel free to see my PDI instance where I reproduce the issue:
One should create a simple test where we want to investigate the content Knowledge Home page, for example create two steps:
1. Navigate to Module, where we choose Module: Knowledge (Self-Service)
2. Assert Text on Page (Custom UI) where we search for text 'Explore our Knowledge Bases'

The test fails as it cant find 'Explore our Knowledge Bases' text on the page displayed by ATF as the page is not Knowledge Home.

When you directly go to Self-Service->Knowledge proper page is being opened and one may see 'Explore our Knowledge Bases' text.

 

ServiceNow has confirmed this issue and created PRB PRB1876865 and the fix should be in Zurich release.

 

I have fixed this temporarily to allow my ATF complete without issues.

I went to the relevant sys_processor record:

https://<instance>.service-now.com/nav_to.do?uri=sys_processor.do?sys_id=2531f7009f003100a04d7e50d67fcf32

and modified line 22 adding a check if there is no parameter characteristic to ATF:

 

 
   if(pageParam.length != 0 && pageParam.indexOf('atf_test_result_sys_id') == -1)
 
This allows ATF to enter portal Home Page.
 
I hope this will help someone facing the same issue until the fix is provided by ServiceNow.
 
Bartosz

 

0 REPLIES 0