Multi-process Architecture: Basic Testing

Testcases

Testcase Steps Expected Result
Tabs with same domain name share a process ID
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Navigate to any other sub-domain through the main page by Ctrl+Clicking or 'context menu clicking' on the link, which opens the sub-domain in a new tab.
  4. Press Shift+Esc to launch the Chrome Task Manager.
The two tabs share the process ID as seen in Chrome Task Manager
New tabs with the same URL share a process ID
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Create a new tab using shortcut Ctrl+T.
  4. Type in the same URL as in Step 2.
  5. Press Shift+Esc to launch the Chrome Task Manager.
Chrome's Task Manager shows two processes (tabs) sharing the process ID
A different process is created when  navigating to a new domain within the same tab
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Press Shift+Esc to launch the Chrome Task Manager.
  4. Check if a new process has been created for the the above domain.
  5. In the same tab, enter a new domain name in the address bar (eg. www.yahoo.com).
Chrome's Task Manager shows that the process ID for the domain in step 2 is ended and a new process ID is created for the domain created in step 5
Constrained window process shares the same process ID of its parent process
  1. Launch Google Chrome with a new session.
  2. Launch http://html.tests.googlepages.com/popup_test.html
  3. Click the button on that page. A constrained window opens.
  4. Press Shift+Esc to launch the Chrome Task Manager.
Parent process and the constrained window process share the process ID.
Downloading a file doesn't create a new process ID; no change in originating process ID
  1. Launch Google Chrome with a new session.
  2. Enter the URL of any page with a download link in the address bar (eg. http://www.apple.com/itunes/download/).
  3. Press Shift+Esc to launch the Chrome Task Manager.
  4. Click the download link (eg. Download iTunes Free). The file will start to download.
Download will progress without modifying the process ID for the domain created in step 2
JavaScript alert is prompted with no change in originating process ID
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Once the page completes loading, type 'javascript:alert("foo");' into the address bar of the same tab
  4. Press Shift+Esc to launch the Chrome Task Manager.
An alert message "foo" displays without changing the process ID for the domain created in step 2
Closing a tab ends the associated process
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Press Shift+Esc to launch the Chrome Task Manager.
  4. A process is listed in the Task Manager for the domain above.
  5. Close the tab.
Process for the domain entered in step 2 is not seen in Chrome's Task Manager
Process can be killed from Chrome's Task Manager
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com).
  3. Press Shift+Esc to launch the Chrome Task Manager.
  4. Select the process running for www.google.com
  5. Click End process.
Process is not seen anymore in the Task Manager and a sad face is displayed for the associated process tab
Closing a tab that shares a process with other tabs doesn't end the other processes
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com)
  3. Navigate to any other sub-domain through the main page by Ctrl+Clicking the link, which opens the sub-domain in a new tab.
  4. Press Shift+Esc to launch the Chrome Task Manager. There are two processes sharing a process ID in the Chrome Task Manager.
  5. Close the first tab.
Process ID that was being shared is now assigned to remaining process
Processes associated with a single process ID are all killed by ending that process
  1. Launch Google Chrome with a new session.
  2. Enter any URL in the address bar (eg. www.google.com)
  3. Navigate to any other sub-domain through the main page by Ctrl+Clicking the link, which opens the sub-domain in a new tab.
  4. Press Shift+Esc to launch the Chrome Task Manager. There are two processes sharing a process ID in the Chrome Task Manager.
  5. Select the process ID that is shared.
  6. Click End process.
All the processes associated with that single process ID are not seen in Chrome's Task Manager and a sad face is displayed in all the tabs associated with that process ID




Comments