Change running from android to chrome

Hi all, I want to know how can I change my running ‘device’ from android to chrome.

I think my code on test case could be like this:

Mobile.blablablabla

ChangeRunConfig()

WebUI.openbrowser(url)

I might know this could be done using test suite collection, but actually I need to use a value of a variable from test that is run from mobile (then I store it to global variable) then use it to chrome, which it can’t be done on test suite collection

GlobalVariable.abcd = Mobile.getText(obj)

ChangeRunConfig()

WebUI.openbrowser(url)

WebUI.verifyText(GlobalVariable.abcd)

Can someone help? Thank you