Openbytesting tool property of browser is not working as expected.

  • Questions
  • Openbytesting tool property of browser is not working as expected.
Question ID: 104646
1
0

We are running into this problem both with QTP 10 & 11 where browser attribute Openbytestingtool is not reporting correctly. If I open browser with QTP it read true then I open another browser manually and its true (Should be false). If I open browser without QTP then run QTP test script to open browser both browsers are false. This should read true only if open by QTP and false if not.

Any Ideas?

Marked as spam
Posted by (Questions: 44, Answers: 0)
Asked on October 12, 2012 10:49 am
8 views
Answers (1)
7
Private answer

I have had this issue too.

Please follow these steps and let me know the results, I have tested in my system and it worked as expected:

1. Close QTP
2. Close all Internet Explorers.
3. Open RegEdit
4. Navigate to HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain
5. Add new Dword key: HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMainTabProcGrowth
Value name=TabProcGrowth, Type=DWORD, Data=0
6. Start QTP and test

When you open two Browsers, normally there will be 3 IE process. (One parent/frame process and two child processes)

This IE's behavior can be changed by IE's registry setting / policy. For example: TabProcGrowth.

The top-level/main windows for both browsers are in the frame process.
Closing frame process will automatically close child processes.
You can use Process Explorer or even the Windows Task Manager to check and verify. (frame process and child processes)

If both browsers do not have the common frame/parent process or they run in single process model, closing one of them surely won't affect the other.

In the default installation of Internet Explorer 8 this key does not exist and is considered by Internet Explorer 8 as set to 1. The key instructs Internet Explorer 8 to open for each tab a separate process if not set or set to 1 (default behaviour), and to run all tabs in the same process if set to 0.

So, by adding this registry we have changed the IE's behavior and if you want to carry its login information from parent browser to child browser, you will need to delete the registry or changed it back to its default value (1).

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on October 12, 2012 10:54 am