Replies

  • In software quality assurance services, Grouping in Mocha Javascript based framework can be done mainly by 02 ways as mentioned below:
    1. Grouping of multiple test scripts in single file: It can be done using describe() provided by Mocha.
    Example:
    // file1.js
    describe('grouped', function () {
        describe('test 1 - file 1', function () {
            // more testcode here
        });
    });

    // file2.js
    describe('grouped', function () {
        describe('test 1 - file 2', function () {
            // more testcode here
        });
    });

    2. Grouping of smoke, sanity and regression suites: It can be done by adding smoke, sanity or any other unique grouping/ tag name at the end of it
    Example:
     test.it('Test script 1 smoke',  function(){
     // some code here
           }
         test.it('Test script 2 smoke',  function(){
     // some code here
           }
          
    Execute the above code using the command:
    mocha filename -fgrep smoke
    The above command will execute the test cases grouped on basis of 'smoke' tag.   

    These are the two common approaches used for grouping while automating web application testing services using Mocha framework

    Best QA Outsourcing & Quality Assurance Company - QASource
    Reap the incomparable benefits of high quality offshore quality assurance services with QASource – Quality That Creates Value and deliver on time, ev…
  • In software quality assurance services, Grouping in Mocha Javascript based framework can be done mainly by 02 ways as mentioned below:
    1. Grouping of multiple test scripts in single file: It can be done using describe() provided by Mocha.
    Example:
    // file1.js
    describe('grouped', function () {
        describe('test 1 - file 1', function () {
            // more testcode here
        });
    });

    // file2.js
    describe('grouped', function () {
        describe('test 1 - file 2', function () {
            // more testcode here
        });
    });

    2. Grouping of smoke, sanity and regression suites: It can be done by adding smoke, sanity or any other unique grouping/ tag name at the end of it
    Example:
     test.it('Test script 1 smoke',  function(){
     // some code here
           }
         test.it('Test script 2 smoke',  function(){
     // some code here
           }
          
    Execute the above code using the command:
    mocha filename -fgrep smoke
    The above command will execute the test cases grouped on basis of 'smoke' tag.   

    These are the two common approaches used for grouping while automating web application testing services using Mocha framework

This reply was deleted.
    results->result as $result) { ?>
  1. jobtitle;?>
    company;?>(formattedRelativeTime;?>)city;?>, state;?>
    Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.