Custom simpltest does not run successfully I have written an automated test to create a node of a specific content type.

Here is the code:

class GlueTestingBuySystemTestCase extends DrupalWebTestCase {

  protected $privileged_user;

  public static function getInfo() {
    return array(
      'name' =&gt; 'Buying system',
      'description' =&gt; 'Buying system test',
      'group' =&gt; 'GLUE',
    );
  }

  public function setUp() {
    $this-&gt;profile = 'testing';
    // Enable any modules required for the test. This should be an array of
    // module names.
    parent::setUp(array('glue_testing'));

    // Create and log in our privileged user.
    $this-&gt;privileged_user = $this-&gt;drupalCreateUser(array(
      'administer nodes',
      ));
    $this-&gt;drupalLogin($this-&gt;privileged_user);
  }

  public function testBuyingSystem() {
    $edit = array();
    $edit['title'] = $this-&gt;randomName(8);
    $this-&gt;drupalPost('node/add/test', $edit, t('Save'));
    $this-&gt;assertText(t('Test Node Type @title has been created.', array('@title' =&gt; $edit['title'])));
  }

}


It does appear in the group "GLUE" but when I run the test it gives me the errors:

Failed to set field title to lLzjWnd0
Found the Save button
Found the requested form fields at node/add/test
"Testing Node Type lLzjWnd0 has been created." found


And does not create any node nor created the user.
Any one who have idea that what is wrong in my code?
afaik there's any content-type in the testing site. You need to create it first. For example date module creates one in DateFieldBasic::setUp (surely there're more examples in core, but I've got that one at hand).