Question
Internal Revenue Service
US
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.