banner



How To Test Rest Service In Pega Using Postman

Question

Member since 2020 3 posts

Morgan Stanley

Posted: Dec 23, 2020

Last activity: January 31, 2021

Posted: 23 Dec 2020 5:15 EST
Last activity: 31 Jan 2021 23:35 EST

Scenario test Residuum service non working in STANDALONE mode

Usecase:

Execute a scenario test suite using OOTB Residue service(/api/v1/testautomation/scenario and /api/v1/scenariotests/execute) and consume the response. Nosotros want to use information technology in test automation scripts.

Event:

Tried running the to a higher place mentioned rest service(Postal service method by giving all the necessary parameters) dominion by giving the scenario exam suite pxInsName and expecting a response with pass fail information. But, Response body is empty and response lawmaking is http 200. Sample request beneath.

request data

Analysis:

Residuum service is calling actvity pzExecuteScenarioTests which takes the to a higher place parameters and tries to get a ScenarioTestRunner and runs it. This lawmaking is neither giving exception nor executing the tests.

fetchedRunner is coming as false and

  ((com.pega.pegarules.priv.testautomation.IScenarioTestRunner)runner).runAll(); is not getting executed.

tried removing the if(fetechedRunner==truthful) check besides, all the same did not work.

Lawmaking snippet:

Usecase:

Execute a scenario examination suite using OOTB Remainder service(/api/v1/testautomation/scenario and /api/v1/scenariotests/execute) and swallow the response. We want to use it in examination automation scripts.

Effect:

Tried running the above mentioned residuum service(Mail service method past giving all the necessary parameters) dominion by giving the scenario exam suite pxInsName and expecting a response with laissez passer fail information. But, Response torso is empty and response lawmaking is http 200. Sample request below.

request data

Analysis:

Rest service is calling actvity pzExecuteScenarioTests which takes the above parameters and tries to get a ScenarioTestRunner and runs it. This code is neither giving exception nor executing the tests.

fetchedRunner is coming as fake and

  ((com.pega.pegarules.priv.testautomation.IScenarioTestRunner)runner).runAll(); is non getting executed.

tried removing the if(fetechedRunner==truthful) cheque as well, still did not work.

Lawmaking snippet:

runner = ((PegaAPI)tools).getScenarioTestRunner(); fetchedRunner = ((com.pega.pegarules.priv.testautomation.IScenarioTestRunner)runner).init(Provider, JobID, ProviderURL, ProviderAuthName, ProviderAuthKey, Browser, BrowserVersion, Platform, PlatformVersion, ScreenResolution, TestSuiteID, SUTURL, SUTUserID, SUTPassword);

if(fetchedRunner == truthful) {   ((com.pega.pegarules.priv.testautomation.IScenarioTestRunner)runner).runAll(); }

Please help in resolving the issue.

***Edited past Moderator: Pooja Gadige to change content format from Discussion to Question***

Pega Platform 8.5.i DevOps Testing Applications

Moderation Team has archived post,

This thread is closed to hereafter replies. Content and links will no longer be updated. If y'all have the same/similar Question, please write a new Question.

How To Test Rest Service In Pega Using Postman,

Source: https://collaborate.pega.com/question/scenario-test-rest-service-not-working-standalone-mode

Posted by: anayadoingunt.blogspot.com

0 Response to "How To Test Rest Service In Pega Using Postman"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel