Hi
I don't want to open my MC from record and run settings, instead I want to open the MC and install the apps then execute the script. I have given below script where my MC gets opened, but instead it is showing a blank page.
Is there any workaround to open MC and install apps from descriptive programming?
Environment.LoadFromFile("C:\Users\DASHConfig.xml")
'Assigning to variables
DeviceType = Environment.Value("DeviceType")
DeviceOS = Environment.Value("DeviceOS")
DeviceID = Environment.Value("DeviceID")
Username=Environment.Value("LoginId")
LoginPwd=Environment.Value("LoginPwd")
'MobileUtil.CallRestAPI
'Create an instance of the QTP
Set App = CreateObject("QuickTest.Application")
'App.Options.MCConnection.Type("0")
App.Options.MCConnection.Server = "/ServerName"
App.Options.MCConnection.Port = "Port"
App.Options.MCConnection.Username = "Username"
App.Options.MCConnection.Password = Pwd
App.Options.MCConnection.UseSSL = False
App.Options.MCConnection.ShowRemoteWndOnRun = False
'App.Options.MCConnection.SharedSpace = "123"
App.Options.MCConnection.WorkSpace = "Default Workspace"
'Create object for MobileLauncher
Set qtMobileLauncher=App.Test.Settings.Launchers.Item("Mobile")
'Defining device to use in Test script
qtMobileLauncher.Lab = "mc"
qtMobileLauncher.LaunchOnStart
Thanks,