Skip to content

CookieComparator

Wiiitek edited this page May 22, 2017 · 3 revisions

Cookie Comparator

Cookie Comparator is responsible for processing collected cookies. This can be simply listing of collected cookies, verifying if a cookie exists or comparing a collected cookie to the pattern.

The cookie feature allows to collect patterns and can be rebased from the report only in the compare action mode.

Module name: cookie

Resource name: cookie

Parameters
Parameter Value Description Mandatory
action list

test

compare
Displays a list of cookies

Tests if a cookie with a given name and value exists

Compares the current data to the pattern (compares only cookie names, values are ignored)
no

If the action parameter is not provided, the default list action is performed
cookie-name The name of the cookie to test, applicable only for the test action yes, if action set to test
cookie-value The value of a cookie to test, applicable only for the test action no
showMatched boolean
(default: true)
Works only in the compare mode. The flag that says if matched cookies should be displayed in the report or not. By default set to true. no
Sample Usage
<?xml version="1.0" encoding="UTF-8" ?>
<suite name="test-suite" company="cognifide" project="project">
    <test name="cookie-test">
        <collect>
            ...
            <cookie />
            ...
        </collect>
        <compare>
            ...
            <cookie />
            ...
        </compare>
        <urls>
        ...
        </urls>
    </test>
    ...
    <reports>
        ...
    </reports>
</suite>
Clone this wiki locally