Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same variation in seed #6

Open
ziozec-zz opened this issue May 13, 2014 · 3 comments
Open

Same variation in seed #6

ziozec-zz opened this issue May 13, 2014 · 3 comments

Comments

@ziozec-zz
Copy link

Hi,
test work well, but when i add seed to container it use only 2 type of variation, all first on last test choices, hereby the code:

    if (!$session->get('seed')) {
        $session->set('seed', mt_rand());
    }

    $abt = new Container(array(
        new Test('promo_code.layout', array(
            'TestAB:step1a.html.twig' => 1,
            'TestAB:step1b.html.twig'   => 1,
        )),
        new Test('promo_code.text', array(
            'Discount code'    => 1,
            'Promo code'     => 1,
        )),
        new Test('promo_code.button', array(
            'button'    => 1,
            'arrow'     => 1,
        )),
    ), $session->get('seed'));

    echo "seed: ".$session->get('seed');

What can be the issue? Thanks

@odino
Copy link
Contributor

odino commented May 20, 2014

hi @ziozec,

that's because you are passing the seed: removing it you will see the tests giving you random results.

The seed is there so that a user always gets the same variation during the navigation, thats how it's expected to be working.

@ziozec-zz
Copy link
Author

hi @odino , thanks for your support.
I know how seed works, what i mean is that when I enable seed also with 2k different users and tracking result I get only two type of variations 000 or 111 not all possible variations.

@odino
Copy link
Contributor

odino commented May 20, 2014

eheh sorry @ziozec, wasnt sure of what you meant :)

Would you be able to add a test case that fails? In that way it is easier to give you a fix...it anyhow sound very strange!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants