Environment URL
On the test plan, open Parameters. Each application that has tests in the plan has an Environment. That environment’s URL is where those tests run. Override the URL for one run from CI or the API. Passenvironment.url for the application short ID. The override wins over the plan parameter, which wins over the project default.
Device preset
The same Parameters card sets a Device Preset for that application, or Default to use the project default. A run can also passdevicePresetShortId.
Device presets cover viewport, user agent, and headers for the browser. See Device Presets.