Question

2
Replies
35
Views
William Schwartz (WilliamS2755)
Internal Revenue Service

Internal Revenue Service
US
WilliamS2755 Member since 2021 1 post
Internal Revenue Service
Posted: 3 weeks ago
Last activity: 2 weeks 2 days ago
Posted: 8 Jul 2021 11:35 EDT
Last activity: 13 Jul 2021 17:14 EDT

Issue Executing Pega Scenario Tests with Selenium Directly from the API

Hi folks,

I’m trying to execute our scenario tests using the Pega REST API provided in version 8.5.3.   Using the Pega documentation online (https://collaborate.pega.com/discussion/pega-restful-api-remote-execution-scenario-tests)  I’m pointing to a standalone Selenium hub running on our local server.  Despite specifying a stand-alone Selenium server, the REST API times out with a 504 gateway timeout error because it’s trying to connect to the Selenium hub “hub.crossbrowsertesting.com:80”.   How do I get it to point to my local Selenium hub instead?  Please see the curl below and the attached log file snippet for the full stacktrace.  

curl -i -k -u '<redacted>:<redacted>' -H 'Content-Type: application/json' --trace-ascii dump.txt -X POST -d '{"JobID":"123", "Provider":"STANDALONE", "Browser":"chrome", "BrowserVersion":"90.0.4430.24", "Platform":"LINUX", "SUTURL":"https://mypegaserver.xxx.xxx/prweb", "SUTUserID":"<redacted>", "SUTPassword":"<redacted>", "ProviderURL":"http://myselenumserver.xxx.xxx:4445/wd/hub", "TestSuiteID":"TS_TEGECW13RegressionTestSuite"}' --url https://mypegaserver.xxx.xxx/prweb/api/v1/scenariotests/execute  

Thanks.

Pega Platform 8.5.3 DevOps Testing Applications Government Lead System Architect