Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to writing a test case in Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 442
    Comment on it

    If you want to writing test case, you have to add javascript code in your Odoo manifest files.
    For example see below code.

    {
        'name': "Demonstration of web/javascript tests",
        'category': 'Hidden',
        'depends': ['web'],
        'test': ['static/test/demo.js'],
    }
    and after that in next step is to create a test case follow below code.
    openerp.testing.section('basic section', function (test) {
        test('my first test', function () {
            ok(false, "this test has run");
        });
    });
    

    Note-All testing helpers and structures live in the openerp.testing module.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: