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

Shashank_Jain
Kilo Sage

@bassantaboe ,

 

In one community thread, a user experienced this error when running ATFs that open portal pages. The advice was:

  • Use the “Open a Catalog Item (SP)” step instead of a generic “Open a Page” or “Open Portal Page” step.

  • Essentially, ATF may be mishandling the initial GET/REST request when invoking portal pages via certain steps. ([turn0search0])

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain – Software Engineer | Turning issues into insights

bassantaboe
Tera Contributor

I tried this solution but it actually did not work cause The page in service portal I want to open does not have any catalog items, and the catalog item is a mandatory field when I try to select any one, the whole table is empty. Is there any other way?

@bassantaboe ,

 

Use “Open a URL” step instead

 

ATF has a generic step called Open a URL (available in Browser tests).

 

Provide the direct URL of your Service Portal page (/sp?id=your_page_id).

 

This bypasses the “catalog item” requirement.

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain – Software Engineer | Turning issues into insights

no this test step is not available