ATF with service portals

bassantaboe
Tera Contributor

I am trying to run a simple atf test case that opens a service portal page, it is working on my personal Pdi perfectly but on another instance it gives this error whenever I try to open any service portal page: This step failed because the client error 'Exception while executing request: stream has already been operated upon or closed: com.glide.rest.util.RESTRuntimeException: Exception while executing request: stream has already been operated upon or closed:

why is that happening although same atf plugins are installed on both instances and I have tried opening a custom service portal on my pdi, it works good but on the other instance any custom or predefined service portal page throws this error, why?

1 ACCEPTED SOLUTION

Hi @bassantaboe 

 

Uncheck Fail on server error and run.

Shaqeel_0-1756974963981.png

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

View solution in original post

10 REPLIES 10

@bassantaboe 

 

Share steps & failed result screenshots.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Okay here are the steps I did, trying to open a Service portal page out-of-the-box in ServiceNow. It is the Knowledge Portal

 

1. First I created the test case as image: my test 1

2. Then test runs in Client test runner and actually opens service portal page for few seconds as in image: opens kb

3. Then client test runner turns white as if it is loading as in image: goes like this

4. Then shows that it failed as in image: fails

5. These are test step results as in images: result 1 & results 2

Hi @bassantaboe 

 

Uncheck Fail on server error and run.

Shaqeel_0-1756974963981.png

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Does this happen due to the rolling back, when rolling back happens, page is closed and that is why stream error occurs?

the solution worked, thank you so much, however, I want to know why the fail on server error should be unchecked?