Forum Discussion
We did this also. Passing the credentials in URL. Still Login dialog get dispplayed.
Thanks
Nishchal
Then no better ideas at the moment except contacting Support...
P.S. If you contact Support and get any result (positive or not) I will appreciate it if you update this thread.
- nisgupta4 years agoValued Contributor
ok.
Thanks
Nishchal
- nisgupta4 years agoValued Contributor
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
- AlexKaras4 years agoChampion Level 3
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?
- nisgupta4 years agoValued Contributor
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();
} - AlexKaras4 years agoChampion Level 3
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.
Related Content
- 3 years agohkim5
Recent Discussions
- 12 months agodavni
- 2 years agoprashantpujari