cancel
Showing results for 
Search instead for 
Did you mean: 

crossbrowsertesting - Device cloud add on

Highlighted
Super Contributor

Re: crossbrowsertesting - Device cloud add on

@AlexKaras 

Ok We have one application which do not have Login dialog. I am trying to run the automated tests for this application in different browser. I am following this link 

https://support.smartbear.com/testcomplete/docs/app-testing/web/cross-platform/iterate.html

 

There is an example above shows how to describe several remote test environments by their capabilities, But how I can call the script test? In the example above they have shown calling keyword tests .

 

Thanks

Nishchal

Highlighted
Community Hero

Re: crossbrowsertesting - Device cloud add on

HI,

 

But how I can call the script test?

Does https://support.smartbear.com/testcomplete/docs/app-testing/web/cross-platform/create.html#remote help?

Or did I miss something in your question?

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Super Contributor

Re: crossbrowsertesting - Device cloud add on

@AlexKaras 

Thank you for the updates. here is the code I am using but I am getting the error testGPACalc() not found

function CBT_GPACalc_Loop(){
var server = "http://hub.crossbrowsertesting.com:80/wd/hub";

var remotes = [
{
browserName: 'safari',
version: '13',
platform: 'Mac OSX 10.15',
username: 'xyz',
password: 'xyz'
},
{
browserName: 'chrome',
deviceName: 'Nexus 9',
username: 'xyz',
password: 'xyz'
}];

for (var i = 0; i < remotes.length; i++)
{
Browsers.RemoteItem(server, JSON.stringify(remotes[i])).Run(Project.Variables.baseURL);

testGPACalc();
}

}

 

 

function testGPACalc(){
var titlePage = Aliases.browser.pageGpacalcNew.textnode;
var expTitle = "GPA Calculator";
//var server = "http://hub.crossbrowsertesting.com:80/wd/hub";
//Browsers.RemoteItem(server, capabilities).Run(Project.Variables.baseURL);


aqUtils.Delay(5000);
Log.Message("The Title of the Page: ");

if(titlePage.WaitProperty("Visible", true, -1)){
Log.Message("The title of the page appears "+aqObject.CheckProperty(titlePage,"contentText",cmpEqual,expTitle));

}

aqUtils.Delay(10000)
Aliases.browser.Close();
}

Highlighted
Community Hero

Re: crossbrowsertesting - Device cloud add on

Hi,

 

 I am getting the error testGPACalc() not found

Do you mean that the testGPACalc() function is not found?

This is strange, as I copied your code and breakpoint within the testGPACalc() function was hit without any problem.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements