<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Support for multiple browsers in a single test (Thread)</title><description> We have a project that needs to run end to end tests sequentially, but on a different browsers.  We have created separate sub-test case for each scenario that needs to open in another browser, so we call them:   Global.DoInvokeTest('%WORKDIR%/CallCenter', params);    // This runs in Chrome
Global.DoInvokeTest('%WORKDIR%/ApplicationConsole', params);    // This runs in IE   first thing that these tests call is a function (in user-defined library) that determines in which browser and environment they run in:   function selectEnvCallCenter(url) {
    Navigator.Select('Chrome');
    Navigator.Open(url);
...    function selectEnvAppConsole(url) {
    Navigator.Select('IE');
    Navigator.Open(url);
...   Invoking the sub-tests works in the main test file, but if we try to invoke these from a sub-test, it opens all (sub-)sub-test files in the same browser and doesnt change browsers... </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/issues-questions/1934.aspx</link><item><guid isPermaLink="false">threadId=1934</guid><author>Dimitar Hristovski (Dimitar.Hristovski@interworks.com.mk)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">multiple browsers</category><category domain="http://www.inflectra.com/kronodesk/thread/tag">single test</category><title>Support for multiple browsers in a single test</title><description> We have a project that needs to run end to end tests sequentially, but on a different browsers.  We have created separate sub-test case for each scenario that needs to open in another browser, so we call them:   Global.DoInvokeTest('%WORKDIR%/CallCenter', params);    // This runs in Chrome
Global.DoInvokeTest('%WORKDIR%/ApplicationConsole', params);    // This runs in IE   first thing that these tests call is a function (in user-defined library) that determines in which browser and environment they run in:   function selectEnvCallCenter(url) {
    Navigator.Select('Chrome');
    Navigator.Open(url);
...    function selectEnvAppConsole(url) {
    Navigator.Select('IE');
    Navigator.Open(url);
...   Invoking the sub-tests works in the main test file, but if we try to invoke these from a sub-test, it opens all (sub-)sub-test files in the same browser and doesnt change browsers... </description><pubDate>Fri, 02 Nov 2018 11:55:04 -0400</pubDate><a10:updated>2018-11-06T08:51:17-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1934.aspx</link></item><item><guid isPermaLink="false">messageId=3426</guid><author>Max K (denis.markovtsev@inflectra.com)</author><title> Hi Dimitar,  There are couple of things to keep in mind when switching browsers within single test </title><description> Hi Dimitar,  There are couple of things to keep in mind when switching browsers within single test run:  1. Use Navigator.SelectBrowserProfile instead of Navigator.Select. The latter is deprecated. Browser profile is what you see in the combo in Browser Settings:     2. The root test (the one that is launched) must load browser libraries for all browser types you need for testing:   g_load_libraries=["Firefox HTML", "Chrome HTML", "Internet Explorer HTML"]   I am also attaching a sample test that opens sub-tests with Chrome and IE.   https://www.inflectra.com/Support/Attachment/89108.aspx   KB on browser selection has been updated as well:   https://www.inflectra.com/Support/KnowledgeBase/KB177.aspx   Regards,  Denis </description><pubDate>Tue, 06 Nov 2018 08:51:17 -0500</pubDate><a10:updated>2018-11-06T08:51:17-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1934.aspx#reply3426</link></item></channel></rss>