This is a migrated thread and some comments may be shown as answers.

launch same test in multiple browser

9 Answers 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vin
Top achievements
Rank 1
Vin asked on 29 Apr 2011, 07:23 AM

Hi,

 

Am using QA version. Am trying to launch same test in multiple browser. Using C# code am launching multiple browser and navigating all browser to Google page. Its working fine for me up to this, now I want to type a text “Google” and will click on “Google Search” Button.

 

Have added QText and BtnGSubmit to element list using “Add to project” option (Using Hover). When I tried to write a code and not getting QText and BtnGSubmit

 

Say “Pages.Google. “Not geeting QText and BtnGSubmit elements” please find the attached screen shot.

 

 

9 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 29 Apr 2011, 05:15 PM
Hi Vin,

There is a slight misunderstanding how to use our Pages class. From your second screenshot, please don't use Pages.GooglePage. Instead use Pages.Google.QText and Pages.Google.BtnGSubmit as shown in your first screenshot. "GooglePage" is actually a class definition, not an object with other properties attached to it that can be used for reference.

Kind regards,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Vin
Top achievements
Rank 1
answered on 02 May 2011, 10:44 AM
Thanks so much for the resposne.

Am trying to run same test in multiple browser and am able to launch multiple browser, but am not able to do other operations in all the browser. Other operations are happing in only last browser. Please find the attached snap shot.

 

Please advice and let me know where I need to change the code. (Am using QA trail version).

Please find the attached snap shot.

0
Cody
Telerik team
answered on 02 May 2011, 04:08 PM
Hello Vin,

The object "ActiveBrowser" will only point to the last opened browser. You need to follow the instructions given here.

Best wishes,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Nate
Top achievements
Rank 1
answered on 02 May 2011, 04:25 PM
You can also set the "BrowserType" property to the desired Browser from the properties pane of the test from the project's page. I have attached a screen-shot for this.
0
Vin
Top achievements
Rank 1
answered on 03 May 2011, 01:05 PM

Thanks so much for the response.

 

Could you please let me know how to use Handlers option in QA edition.

0
Cody
Telerik team
answered on 03 May 2011, 07:48 PM
Hello Nate,

This documentation may help some. If you have specific questions on how to handle a specific dialog, please share with us a screen shot of the dialog you need help automating so we can answer it with the right solution for you.

All the best,
Cody
the Telerik team
Do you think you know all the new features coming out in Test Studio R1 2011? Think again - we have some surprises and will share them with you in the What's New in Test Studio R1 2011 Webinar on May 12th.
Register Today!
0
Selvakumar
Top achievements
Rank 1
answered on 04 Sep 2012, 12:05 PM
Hi Cody,
          
       Currently my application uses active directory authentication. I am trying to create a common login function for the whole project so,by just sending username and password as parameter, the logon dialog should be handled and user should be taken to the home page. When I have the login function within a particular testcase, and unchecking the step, passing parameters to the function from other step, the logon dialog is handled successfully and able to proceed, but when I moved the common login function outside the testcase and put it as common function and trying to call from other cases during login step, it fails with "Null reference exception"

a)How I can pass ActiveBrowser object to outside common function from the current executing test case 

or Is there any other solution for this which can solve the problem. Please advise
0
Byron
Telerik team
answered on 06 Sep 2012, 11:17 PM
Hi Selvakumar,

If you would like to create global variables or functions in Test Studio Standalone version that are accessible from all the tests within the test project, you can create a utility class. This class  will contain the intended functions or variables. 

Greetings,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Selvakumar
Top achievements
Rank 1
answered on 07 Sep 2012, 05:07 AM
Byron, Thanks for your reply and this is how I created solution for it

I have created a common function accepting Username, Password,Browser object and Manager object as parameters and calling this function whenever required to handle logon dialog. So for the entire project, logon dialog is handled by just calling this Common function

Thanks again,
Selvakumar



Tags
General Discussions
Asked by
Vin
Top achievements
Rank 1
Answers by
Cody
Telerik team
Vin
Top achievements
Rank 1
Nate
Top achievements
Rank 1
Selvakumar
Top achievements
Rank 1
Byron
Telerik team
Share this question
or