I thought I would try it step by step so I don't waste much time & get it to work as soon as possible.(already wasted 2 weeks).
First Step: Installation
(1) I put lib folder in E:\wamp\www\a3\
(2) I put tests folder in the same directory (E:\wamp\www\a3\).
(3) I put simpletest_1.0.1.eclipse_0.2.4 in the same folder too (E:\wamp\www\a3\).
Second Step: Editing TestConfiguration.php
TestConfiguration.php is in the tests folder (E:\wamp\www\a3\tests\TestConfiguration.php)
Now the configuration:
Code: Select all
<?php
define("TEST_CONFIG_PATH", dirname(E:\wamp\www\a3\tests\TestConfiguration.php));
define("DEFAULT_WRITABLE_PATH", TEST_CONFIG_PATH . "E:\wamp\www\a3\tests\tmp");
define("DEFAULT_LIBRARY_PATH", TEST_CONFIG_PATH . "E:\wamp\www\a3\lib");
define("FILES_PATH", TEST_CONFIG_PATH . "E:\wamp\www\a3\tests\files");
/**
* Adjust the values contained inside this class in order to run the tests
* NOTE: SimpleTest is NOT provided with Swift. You must download this from SouceForge yourself.
* Paths given should be either relative to the "tests/units" directory or absolute.
* @package Swift_Tests
* @author Chris Corbyn <chris@w3style.co.uk>
*/
class TestConfiguration
{
/**
* Somewhere to write to when testing disk cache
*/
const WRITABLE_PATH = DEFAULT_WRITABLE_PATH;
/**
* The location of SimpleTest (Unit Test Tool)
*/
const SIMPLETEST_PATH = "E:\wamp\www\a3\simpletest_1.0.1.eclipse_0.2.4";
/**
* The location of the Swift library directory
*/
const SWIFT_LIBRARY_PATH = DEFAULT_LIBRARY_PATH;
/**
* The location of some files used in testing.
*/
const FILES_PATH = FILES_PATH;
/*
* EVERYTHING BELOW IS FOR SMOKE TESTING ONLY
*/
/**
* The connection tye to use in testing
* "smtp", "sendmail" or "nativemail"
*/
const CONNECTION_TYPE = "smtp";
/**
* An address to send emails from
*/
const FROM_ADDRESS = "MEmeMe@gmail.com";
/**
* The name of the sender
*/
const FROM_NAME = "gas";
/**
* An address to send emails to
*/
const TO_ADDRESS = "MEmeMe@gmail.com";
/**
* The name of the recipient
*/
const TO_NAME = "gas";
/*
* SMTP SETTINGS - IF APPLICABLE
*/
/**
* The FQDN of the host
*/
const SMTP_HOST = "smtp.gmail.com";
/**
* The remote port of the SMTP server
*/
const SMTP_PORT = 465;
/**
* Encryption to use if any
* "ssl", "tls" or false
*/
const SMTP_ENCRYPTION = ssl;
/**
* A username for SMTP, if any
*/
const SMTP_USER = MEmeMe@gmail.com;
/**
* Password for SMTP, if any
*/
const SMTP_PASS = myPaSS;
/*
* SENDMAIL BINARY SETTINGS - IF APPLICABLE
*/
/**
* The path to sendmail, including the -bs options
*/
const SENDMAIL_PATH = "/usr/sbin/sendmail -bs";
}
I will not go any further until I make sure I'm in the right way. So let me know if everything is ok ..my steps..the configuration & what should I do next. Thanks for reading.