Cookies, Headers, and HTML5 Storage

In Functionize, a user can inject cookies and HTML5 storage into test cases. A user can also manipulate header data which includes (but is not limited to) spoofing IP addresses and other information contained in the header. This is great for testing various experiences on a multinational website with different customer profiles or deflecting traffic from a login page and dispersing it more equally across the site.

How To Include HTML5 Data or Cookies in a Test Case

  1. Go to any Project
  2. Select Create New Test  mceclip0.png
  3. Select Natural Text
  4. Fill out the Overview tab
  5. Select Next
  6. In the Test Steps column, determine where in the steps to inject cookies. (Example: if cookies will be injected at the beginning of the test case, then this would be the second step after the starting URL.)
  7. In the Step field, type: "include cookie data (or HTML5 data) in test case"
  8. Type the cookie value in the Test Data (optional) column of the test plan.
  9. Complete the remainder of the test steps and select Submit to process the test.

Cookies_1.png

How to Delete Cookies in a Test Case

Deleting cookies midway through a test case that’s executing is also possible. This is a lesser-used option, but is valuable in some situations and is available on any page initialization action (new page load). If deleting cookies on the page, be aware that the page will reload as part of the cookie clearing process.

To delete cookies:

  1. Go to any Project
  2. Select Create New Test  mceclip0.png
  3. Select Natural Text
  4. Fill out the Overview tab
  5. Select Next
  6. In the Test Steps column, determine where in the steps to delete cookies. 
  7. In the Step field, type: "delete cookie data (or HTML5 data) in test case"
  8. Type the cookie value in the Test Data (optional) column of the test plan.
  9. Complete the remainder of the test steps and select Submit to process the test.

Cookies_2.png

Headers

For header manipulation, reach out to the account manager to discuss the goals around this portion of the product. Once the initial set up is completed, there will be direct access to these settings within the account.