Using Rapise ribbon navigate to Settings > Mobile. Create a profile for Browserstack connection and set Uri to
https://hub-cloud.browserstack.com/wd/hub
Then specify credentials and device parameters.

Configuring Capabilities Dynamically via Callback (GetAppiumNonProfileCapabilities)
While all BrowserStack capabilities can be configured statically in the Mobile Profile UI, it is often convenient to define or override them in Common.js (or User.js) using the GetAppiumNonProfileCapabilities callback function. The main advantage of this approach is that capability values can be supplied dynamically at runtime—for example, read from test or Spira parameters using Tester.GetParam(name).
In Rapise, navigate to Settings > Mobile and create a profile named Browserstack with Uri set to:
Text
https://hub-cloud.browserstack.com/wd/hub
Specify any standard top-level W3C capabilities (such as platformName, automationName, browserName, or app) in the profile as needed.
Open your test's User.js file (or Shared\Common.js if using Rapise Framework mode) and add the following callback function:
function GetAppiumNonProfileCapabilities(profile)
{
var caps = {};
if (profile == "Browserstack")
{
caps["bstack:options"] =
{
userName: "browserstack_username",
accessKey: "browserstack_accesskey",
deviceName: "Google Pixel 11 Pro",
osVersion: "17.0",
realMobile: "true",
appiumVersion: "2.4.1"
};
}
return caps;
}
Replace browserstack_username and browserstack_accesskey with your BrowserStack credentials, and update deviceName, osVersion, and appiumVersion to match your target device configuration.
Rapise automatically executes GetAppiumNonProfileCapabilities before starting the Appium session and merges these capabilities with the Browserstack mobile profile.