How to add browser as a tested application
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to add browser as a tested application
Hello
Im trying to add browser as a tested application and could not find any significant information on the discussions board.
Can you please help me with a way to add a browser based web application as tested application?
My Requirements:
1. I want to be able to launch the web browser based web application
2. Parameterize it against different environments, test, stage
3. The main reason why i started looked for tested application is I want the Test Complete to ignore the currently running IE browser and open a new Browser window and execute the tests and Close it upon completion. In my code i get the current page url and use the url to navigate to others pages. So i to be able to open a individual browser session and run my tests successfully
Please let me know if I can provide more information
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Best practice is to not have any extra browser windows or other applications open when you run a test.
2) Here's how you open a URL in a new browser
3) The Close method for a browser is in here
Marsha_R
[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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Marsha_R
Totally agree. the best practice is to close existing browser applications before i launch the tests and I have implemented it the very same way of writing an if condition to check if an browser exists and close it if it does. But sometimes if there is any browser warning then it could not Click on "Leave Page" and quit the browser.
So i have added conditional statements to check if those objects exists and Click on Leave Page in case they exists . But this is taking for ever. My sign in test almost took 2 minutes .
So as a solution for that I have thought of using Tested applications and opening the application in a new browser window.
My question now is : Is there a way to Force Close the IE browser regardless of browser warnings and pop ups??
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can close the browser process instead of trying to close the window itself
Another thought is that sometimes in our quest for automated tests we try for "perfect" when "good" will do and not take nearly as much time. I just make it part of the process to close everything on the test machine manually before I start the test.
Marsha_R
[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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again with very prompt responses. I have no luck with closing the browser process.
This is the error when i try that
and the code i have used is
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's a previous thread that might help you with that
Marsha_R
[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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot for your help Marsha!
@testbuilder does this solve the issue?
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
