Jump to content

Extension:ConfirmEdit/Test Plan

From mediawiki.org

Simple Captcha

[edit]
Test Case ID Test Case Name Pre-requisite Expected Results Can Automate ?
Positive Scenario
1 Verify captcha triggers when editing the page.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Save Page' button on any page(existing/ new) should trigger the followings.

  • 'To edit this page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

2. System should display simple addition or subtraction question until the user provides the correct answer.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
2 Verify the captcha triggers when creating the page.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

2. Clicking on the 'Save page' button should trigger the following.

  • 'To create the page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • Simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

3. Page should be moved to Read mode from Create mode, after the user provides the correct answer.

Yes
3 Verify the captcha triggers when adding URLs.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to add an external link inside the MediaWiki editor.(Example : [http://www.google.com link title])

2. Clicking on the 'Save Page' button should trigger the followings.

  • 'Your edit includes new external links. To help protect against automated spam, please solve the simple sum below and enter the answer in the box (more info):' text
  • 'more info' link
  • System should provide a simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

2. System should display simple addition or subtraction question until the user provides the correct answer.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
4 Verify the captcha triggers when creating the user account.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Create an account.' link on the 'Log in' page should trigger the followings.

  • 'To help protect against automated account creation, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • System should provide a simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

2. System should display simple addition or subtraction question until the user provides the correct answer.

3. 'Login successful' message should display when the user submits the correct answer with the valid inputs to the other fields.

Yes
5 Verify the captcha triggers at the user login after failure.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Log in / create account.' link should trigger the followings.

  • 'To help protect against automated password cracking, please answer the question that appears below (more info): ' text
  • 'more info' link
  • System should provide a simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

2. System should display simple addition or subtraction question until the user provides the correct answer.

3. User should be able to login successfully when the user submits the correct answer.

Yes
Negative Scenario
6 Verify captcha is not triggered when editing the page with $wgCaptchaTriggers['edit'] = false

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. System should not provide simple sum when clicking on the 'Save page' button.

2. Page should be moved to Read mode from Edit mode after clicking on the Save page button.

Yes
7 Verify the captcha is not triggered when creating the page with $wgCaptchaTriggers['create'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

2. System should not provide simple sum when clicking on the 'Save page' button.

3. Page should be moved to Read mode from Create mode, after the user provides the correct answer.

Yes
8 Verify the captcha is not triggered when adding URLs with $wgCaptchaTriggers['addurl'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to add an external link inside the MediaWiki editor.(Example : [http://www.google.com link title])

2. System should not provide simple sum when clicking on the 'Save page' button.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
9 Verify the captcha is not triggered when creating the user account with $wgCaptchaTriggers['createaccount'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = false;
$wgCaptchaTriggers['badlogin'] = true;

1. 'Login successful' message should display by clicking on the 'Create an account.' link on the 'Log in' page.

2. User should not get simple sum.

Yes
10 Verify the captcha is not triggered at the user login after failure with $wgCaptchaTriggers['badlogin'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = false;
$wgCaptchaTriggers['badlogin'] = false;

1. User should not get simple sum at bad logins attempts. Yes

Questy Captcha

[edit]
Test Case ID Test Case Name Pre-requisite Expected Results Can Automate ?
Positive Scenario
1 Verify questy captcha triggers when editing the page.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Save Page' button on any page(existing/ new) should trigger the followings.

  • 'To edit this page, please answer the question that appears below (more info):' text
  • 'more info' link
  • System should provide a question to the user.

2. System should display the question until the user provides the correct answer.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
2 Verify the questy captcha triggers when creating the page.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

  • 'To create the page, please answer the question that appears below (more info):' text
  • 'more info' link
  • System should provide a question to the user.

2. System should display the question until the user provides the correct answer.

3. Page should be moved to Read mode from Create mode, after the user provides the correct answer.

Yes
3 Verify the questy captcha triggers when adding URLs.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");
$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to add an external link inside the MediaWiki editor.(Example : [http://www.google.com link title])

2. Clicking on the 'Save Page' button should trigger the followings.

  • 'Your edit includes new external links. To help protect against automated spam, please answer the question that appears below (more info): ' text
  • 'more info' link
  • System should provide a question to the user.

2. System should display the question until the user provides the correct answer.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
4 Verify the questy captcha triggers when creating the user account.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Create an account.' link on the 'Log in' page should trigger the followings.

  • 'To help protect against automated account creation, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • System should provide a question to the user.

2. System should display the question until the user provides the correct answer.

3. 'Login successful' message should display when the user submits the correct answer with the valid inputs to the other fields.

Yes
5 Verify the questy captcha triggers at the user login after failure.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Log in / create account.' link should trigger the followings.

  • 'To help protect against automated password cracking, please answer the question that appears below (more info): ' text
  • 'more info' link
  • System should provide a question to the user.

2. System should display the question until the user provides the correct answer.

3. User should be able to login successfully when the user submits the correct answer.

Yes
Negative Scenario
6 Verify questy captcha is not triggered when editing the page with $wgCaptchaTriggers['edit'] = false

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. System should not provide simple sum when clicking on the 'Save page' button.

2. Page should be moved to Read mode from Edit mode after clicking on the 'Save page' button.

Yes
6 Verify the questy captcha is not triggered when creating the page with $wgCaptchaTriggers['create'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

2. System should not provide simple sum when clicking on the 'Save page' button.

3. Page should be moved to Read mode from Create mode, after the user provides the correct answer.

Yes
7 Verify the questy captcha is not triggered when adding URLs with $wgCaptchaTriggers['addurl'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to add an external link inside the MediaWiki editor.(Example : [http://www.google.com link title])

2. System should not provide simple sum when clicking on the 'Save page' button.

3. Page should be moved to Read mode from Edit mode, after the user provides the correct answer.

Yes
8 Verify the questy captcha is not triggered when creating the user account with $wgCaptchaTriggers['createaccount'] =false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = false;
$wgCaptchaTriggers['badlogin'] = true;

1. 'Login successful' message should be displayed by clicking on the 'Create an account.' link on the 'Log in' page.

2. System should not provide simple sum when clicking on the button.

Yes
9 Verify the questy captcha is not triggered when creating the user account with $wgCaptchaTriggers['createaccount'] =false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = false;
$wgCaptchaTriggers['badlogin'] = true;

1. 'Login successful' message should be displayed by clicking on the 'Create an account.' link on the 'Log in' page.

2. System should not provide simple sum when clicking on the button.

Yes
10 Verify the questy captcha is not triggered at the user login after failure with $wgCaptchaTriggers['badlogin'] = false.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = false;

1. User should not get simple sum at bad logins attempts. Yes

Simple/Questy Captcha common

[edit]
Test Case ID Test Case Name Pre-requisite Expected Results Can Automate ?
Positive Scenario
1

Verify simple captcha triggers only when clicking on the 'Save page' button.

1. LocalSettings.php should include the following.

require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Show preview' button should not trigger a captcha.
2. Clicking on the 'Save page' button should trigger a captcha

yes
2 Verify questy captcha triggers only when clicking on the 'Save page' button.

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should include the following.
require_once( "extensions/ConfirmEdit/QuestyCaptcha.php");

$wgCaptchaQuestions[] = array( 'question' => "Question 1?", 'answer' => "Answer 1" );
$wgCaptchaQuestions[] = array( 'question' => 'Question 2', 'answer' => 'Answer 2' );
$wgCaptchaQuestions[] = array( 'question' => "What is this wiki's name?", 'answer' => "$wgSitename" );

3. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'QuestyCaptcha';

$wgCaptchaTriggers['edit'] =true;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. Clicking on the 'Show preview' button should not trigger a captcha. 2. Clicking on the 'Save page' button should trigger a captcha

Yes
3 Verify the simple captcha trigering when the multiple $wgCaptchaTriggers set to true. (eg. Edit, create and add url)
1. LocalSettings.php should include the following.

require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

2. Click on the 'Save page' button after adding an extenal link.(eg. [http://www.google.com link title])

3. Clicking on the 'Save page' button should not trigger the followings related to the CREATE page and add URL.

  • 'To create the page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'Your edit includes new external links. To help protect against automated spam, please solve the simple sum below and enter the answer in the box (more info):' text

4. Clicking on the 'Save Page' button should trigger the followings.

  • 'To edit this page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

Yes
4 Verify the questy captcha trigering when the multiple $wgCaptchaTriggers set to true. (eg. Edit, create and add url)

1. LocalSettings.php should include the following.

require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to create a new page by clicking on the 'Create the page "<page name>" on this wiki!' link.

2. Click on the 'Save page' button after adding an extenal link.(eg. [http://www.google.com link title])

3. Clicking on the 'Save page' button should not trigger the followings related to the CREATE page and add URL.

  • 'To create the page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'Your edit includes new external links. To help protect against automated spam, please solve the simple sum below and enter the answer in the box (more info):' text

4. Clicking on the 'Save Page' button should trigger the followings.

  • 'To edit this page, please solve the simple sum below and enter the answer in the box (more info): ' text
  • 'more info' link
  • simple addition or subtraction question for the user as in the below format.

Number1 + Number2 = Text box
or
Number1 - Number2 = Text box

Yes
Negative Scenario
5 Verify the warning when the extensions/ConfirmEdit folder does not contains the required files.

1. LocalSettings.php should include the following.

require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php should include the following.

$wgCaptchaClass = 'SimpleCaptcha'; $wgCaptchaTriggers['edit'] = true;

1. Clicking on the 'Save page' button should not move to the read mode. Yes
6 Verify the user is able to edit the page when the user hasn't include 'require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); ' statement in 'LocalSettings.php'

1. LocalSettings.php should not contain the followings.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php
$wgCaptchaClass = 'SimpleCaptcha';
$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

User should be able to save the page without solving the simple sum. Yes
7 Verify the user is able to create a page when the user hasn't include 'require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); ' statement in 'LocalSettings.php'

1. LocalSettings.php should not contain the followings.
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

2. ConfirmEdit.php
$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

User should be able to create a page without solving the simple sum. Yes
8 Verify the user is able to add a URL when the user hasn't include 'require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); ' statement in 'LocalSettings.php'

1. All the files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );

3. ConfirmEdit.php
$wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

1. User should be able to add an external link inside the MediaWiki editor.(Example : [http://www.google.com link title])

2. User should be able to add a URL with out solving a simple sum.

Yes
9 Verify the user is able to create a user account when the user hasn't include 'require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); ' statement in 'LocalSettings.php'

1. All the required files should be available under extensions/ConfirmEdit folder.

2. LocalSettings.php should not contain the following. require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); $wgCaptchaClass = 'SimpleCaptcha';

3. ConfirmEdit.php $wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

User should be able to create a user account without solving the simple sum.e Yes
10 Verify the user is able to login after failure, when the user hasn't include 'require_once( "extensions/ConfirmEdit/ConfirmEdit.php" ); ' statement in 'LocalSettings.php'

1. All the required files should be available under extensions/ConfirmEdit folder.

2 LocalSettings.php
require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );


3. ConfirmEdit.php $wgCaptchaClass = 'SimpleCaptcha';

$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['sendemail'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;

System should not display simple sum at the bad logins. Yes