qacafe - ip test solutions
Knowledge Base > Test Execution > Why do I see '0 tests run' when I try to execute a test?

Why do I see '0 tests run' when I try to execute a test?

At the end of your test run, the final report indicates how many tests were run, the PASS/FAIL status for each test, and how long it took to execute the tests. Here's an example:

Test          Result Synopsis
-------------+------+-----------------------------------------------------------

0 test(s) run
0 failure(s)


--- end of test run ---
Test run started at Wed Apr 30 12:28:29 EDT 2003
Test run stoped at Wed Apr 30 12:29:13 EDT 2003, total time 00:00:44

When the number of tests run is '0', there is usually a configuration issue. Check the following:

  • If a test module requires a certain router configuration, the test module will be skipped if the configuration requirement is not met. For example, in order to run the pptp-c.tcl module, the router must be running PPTP on the WAN interface. The test log will display any modules or test cases that are skipped because of missing configuration requirements:

    INFO(setup): 12:28:29| 'wanMode' configuration is 'PPPoE'
    INFO(setup): 12:28:29| Skipping tests and modules not compatible with PPPoE
    INFO(setup): 12:28:29| Test 'cdrouter_basic_2' (2) will be skipped
    INFO(setup): 12:28:29| Test module 'dhcp-c.tcl' will be skipped
    INFO(setup): 12:28:29| Test module 'pppoa-c.tcl' will be skipped
    INFO(setup): 12:28:29| Test module 'pptp-c.tcl' will be skipped
    INFO(setup): 12:28:29| Test module 'renum-dhcp.tcl' will be skipped
    INFO(setup): 12:28:29| Test module 'renum-pppoa.tcl' will be skipped
    INFO(setup): 12:28:29| Test 'cdrouter_forward_20' (109) will be skipped
    

  • If a specific module or test case name is specified and does not exist, that module or test case will not be run. If it is the only test module or test case specified, no other tests are run.

    [root@oakbank lab]# buddy -module nosuchmodule.tcl
    
    Copyright (c) 2001-2003 by QA Cafe
    
    
    
    WARNING: No such module "nosuchmodule.tcl" (use -list to see modules)
    
    INFO(setup): Starting buddy ...
    INFO(setup): Loaded OS version Linux-2.4.20-6
    INFO(setup): Loaded Tcl version 8.3.5
    INFO(setup): Loaded buddy version 1.17
    INFO(setup): Loaded pktsrc version 1.4.1
    INFO(setup): Test Suite cdrouter 1.7.1
    INFO(setup): Loading test configuration file at.conf
    INFO(setup): Adding test module nosuchmodule.tcl to execution list
    
    12:44:12| No tests selected to run
    [root@oakbank lab]#