The test case is not recognized by the Simpletest module I am using Drupal 7, and the latest version of the Simpletest module. I have written a test case like the following one:

class SimpleTestDemoTestCase extends DrupalWebTestCase {
  function setUp($modules = array()) {
    parent::setUp('simpletestdemo');
  }

  public function getInfo(){
    return array(
      'name' =&gt; 'Simpletestdemo testcase',
      'description' =&gt; 'Simpletestdemo testcase desc',
      'group' =&gt; 'Simpletestdemo'
    );
  }

  public function testBlockView() {
    $simpletestblockview = module_invoke('simpletestdemo','block_view);
    $this-&gt;assertTrue(t('Simpletest Demo'),$simpletestblockview['title']);
  }
}
?&gt;


This does not get recognized by the Simpletest module. Is there anything wrong in this test case?
As srihita pointed out in a comment, you need to add the file which contains the test class to the files[] array in your module's info file like this:

files[]=yourmodule.test


Then, let it rebuild by submitting the modules page or use the "Clear information" (or similar, not sure about the exact label right now) at the bottom of the Testing page.

Also, you're code is missing a ', but that might be a copy/paste error.