Messenger Prject Acceptance Test Plan Versin 1.1
Messenger prject Versin: 1.1 Revisin Histry Date Versin Descriptin Authr 2005-01-18 1.0 Initial Draft Mark Bejuk 2005-02-07 1.1 Frmatting f dc, finalizing Jnas Wadsten Page 3
Messenger prject Versin: 1.1 Table f Cntents 1. Intrductin 5 1.1 Purpse f this dcument 5 1.2 Intended Audience 5 1.3 Scpe 5 1.4 Definitins and acrnyms 5 1.4.2 Acrnyms and abbreviatins 5 1.5 References 5 2. Test-plan intrductin 6 3. Test items 6 4. Features t be tested 6 5. Features nt t be tested 6 6. Apprach 6 6.1 Dcumentatin prblems 6 7. Test prcedure 7 7.1 Test case specificatins 7 8. Apprvals 12 Page 4
Messenger prject Versin: 1.1 1. Intrductin 1.1 Purpse f this dcument Purpse f this dcument is t describe the verall test perfrmed t achieve better quality f the final prduct. During this prject sme incnsistencies between the planed design and the actual prduct appeared and it was the purpse f this dcument t mark them and help in their remval. 1.2 Intended Audience Our intended audience is: Members f Messenger grup Steering Grup Custmer Class fellws 1.3 Scpe This dcument shuld prvide infrmatin f testing dne in this prject and present results f perfrmed tests. 1.4 Definitins and acrnyms 1.4.1 Acrnyms and abbreviatins Acrnym r abbreviatin MySQL PHP Definitins Multithreaded, multi-user, SQL (Structured Query Language) relatinal database server (RDBMS) Widely-used pen-surce prgramming language primarily fr serverside applicatins and develping dynamic web cntent. 1.5 References Dcument Identity/ Title Prject descriptin Requirements definitin Design descriptin User manual File name PrjectDescriptin.dc RequrementsDefinitin.dc Design descriptin.dc User manual.dc Page 5
Messenger prject Versin: 1.1 2. Test-plan intrductin As it was already described in the related dcumentatin messenger client can be viewed upn as three-tier architecture sftware. Three tiers include: Database Web interface Messenger client 3. Test items Tested items: Database Web interface 4. Features t be tested Features that are tested are gruped by functinality, cnsidering the access rights f an certain user: Authenticatin Changing persnal inf Database search Add team member Edit team member Add prject Edit prject String chats 5. Features nt t be tested Due t encuntered prblems in develpment phase and lack f time messenger client was nt thrughly tested and therefre results f testing are nt presented in this dcument. 6. Apprach During testing phase fllwing types f testing were perfrmed: Aggressive SQL f the database Passive test f web interface 6.1 Dcumentatin prblems Sme prblems cnsidering the differences between dcumentatin and the actual prduct are named in this test plan. Page 6
Messenger prject Versin: 1.1 7. Test prcedure Perfrmed tests have t answer fllwing tw questins: 1. Can the web interface use the database and perate with it in rder t stre and retrieve prject related infrmatin? 2. Can the Messenger client use the database t remtely stre prject related infrmatin? 7.1 Test case specificatins Web interface: Functins that shuld be prvided by the Web pages are listed in the fllwing subsectins. Web pages prvide different functins depending n the access rights the actr pssesses. Actr can be lgged in as Team Member, Prject Administratr and Super Administratr. When lgged in as Team Member fllwing functins are at actr s dispsal: Database authenticatin Lgin (user name) TeamMember Table Passwrd - TeamMember Table Access rights - TeamMember Table SELECT AccessRights FROM `TeamMember` WHERE UserName = 'markbejuk' AND Passwrd = 'mb04' SELECT AccessRights FROM `TeamMember` WHERE UserName = 'markbejuk' AND Passwrd = 'mb' SELECT AccessRights FROM `TeamMember` WHERE UserName = 'MarKBejUk' AND Passwrd = 'MB04' REMARK: Database has been built in a way that all strings are cmpared case insensitive (keywrd BINARY has been excluded) Changing persnal inf nly after Team member has been added t prject and access rights are prvided: Username - TeamMember Table Passwrd - TeamMember Table First name - TeamMember Table Last name TeamMember Table E-mail n table??? Phne - TeamMember Table Mbile n table??? FaxNr n table??? REMARK: I prpse altering TeamMember table!! Sme fields like e-mail, mbile and FaxNr dn t exist in the database: ALTER TABLE `TeamMember` ADD COLUMN `Email` VARCHAR (30) NOT NULL, Page 7
Messenger prject Versin: 1.1 ADD COLUMN `Mbile` VARCHAR (30) NOT NULL, ADD COLUMN `FaxNum` VARCHAR(30) NOT NULL, ADD COLUMN `Cmpany` VARCHAR(30) NOT NULL; UPDATE TeamMember SET FirstName = 'Mark', LastName = 'Bejuk', Phne = '3894658', Email = 'mark_bejuk@yah.cm', Mbile = '+385989347636', FaxNum = '+38513894658', Cmpany = 'FER' WHERE (UserName = 'ivicakicmanvic') AND (Passwrd = 'ik03') UPDATE TeamMember SET UserName = 'mbejuk', Passwrd = 'mb01', FirstName = 'Mark', LastName = 'Bejuk', Phne = '3894658', Email = 'mark_bejuk@yah.cm', Mbile = '+385989347636', FaxNum = '+38513894658', Cmpany = 'FER' WHERE (UserName = 'ivicakicmanvic') AND (Passwrd = 'ik03') REMARK: Sme fields in TeamMember table like Phne shuld als be altered. In TeamMember table, Phne field is f integer type which is nt gd e.g. if smene writes in a number like 385 1 388 2838. This number is ut f integer range and the number is turned int max number integer can supprt (e.g. 2 147 636). ALTER TABLE `TeamMember` CHANGE COLUMN `Phne` VARCHAR (30) NOT NULL Database search there shuld be several search criteria prvided: Prject search Prject Table Member search TeamMember Table Keywrd search ChatDetail Table Time perid search ChatDetail Table Result page cntains fllwing infrmatin: Prject name Prject Table Prject member MemberInPrject and TeamMember Tables Date f cnversatins ChatDetail Table Keywrd search: SELECT * FROM ChatDetail WHERE Cnversatin LIKE '%Keywrd%' Time perid search: SELECT * FROM ChatDetail WHERE (CnversatinStartDateTime >= '2004-11-05 00:00:00') AND (CnversatinStpDateTime <= '2004-11-28 23:59:59') Page 8
Messenger prject Versin: 1.1 Fllwing Queries select cnversatins by Name f the prject criteria: SELECT ChatDetail.* FROM ChatDetail, ChatSessin, PrjectID WHERE ChatDetail.ChatID = ChatSessin.ChatID AND ChatSessin.PrjectID = Prject.PrjectID AND Prject.PrjectName = 'Messenger' Fllwing queries select cnversatins by Names f the participants f the cnversatin criteria: SELECT ChatDetail.* FROM ChatDetail, ChatSessin, TeamMember WHERE ChatDetail.ChatID = ChatSessin.ChatID AND ChatSessin.MemberID = TeamMember.MemberID AND (((TRIM(TeamMember.FirstName) ' ' TeamMember.LastName) = 'Mark Bejuk') When lgged in as an Administratr actr can, including functins listed abve, add and edit team members and prjects. Differences are listed beneath: Add team member t a prject Username - TeamMember Table Passwrd - TeamMember Table First name - TeamMember Table Last name TeamMember Table E-mail n table??? Phne - TeamMember Table Mbile n table??? FaxNr n table??? Access rights why is there n access right bx in web page??? Prject selectin update MemberInPrject Table INSERT INTO TeamMember (UserName, Passwrd, FirstName, LastName, EntryDate, Phne, AccessRights, Designatin, Email, Mbile, FaxNum, Cmpany) VALUES ('ivicakicmanvic', 'ik03', 'Ivica', 'Kicmanvic', '2004-12-29', 38513894658, '1', 'Team member', 'ivicak@yah.cm', '+385989347636', '+38513894658', 'FER') INSERT INTO MembersMsngrAccunt VALUES (SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName)='Mark Bejuk', SELECT MessengerID FROM Messenger WHERE MessengerName='MSN Messenger', 'markb59@htmail.cm') INSERT INTO MembersMsngrAccunt VALUES (SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName)='Mark Bejuk', SELECT MessengerID FROM Messenger WHERE MessengerName='MSN Messenger', 'markb59@htmail.cm') REMARK: While creating a member shuldn there be fields in the web page (perhaps cmb bx f supprted types f messengers) t write in what Page 9
Messenger prject Versin: 1.1 messenger des the actr use and what is his accunt ID (like nice_pak@htmail.cm)??? REMARK: Shudn't there be at add team member web page fields fr lgin and inital passwrd. Hw are the lgin and passwrd fields fr team member altered. By lgging in t database and writing insert? (nt gd??) Edit team member infrmatin used tables are the same as in add team member infrmatin, used cmmands are the same as the ne used in change persnal inf Add prject Prject title Prject Table Start date - Prject Table End date - Prject Table Prject members update MemberInPrject Table INSERT INTO Prject (PrjName, StartDate, EndDate, AddedBy) VALUES ('Messenger', '2004-12-29', '2005-01-27', SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName) = 'Mark Bejuk') INSERT INTO MemberInPrject (MemberID, PrjectID) VALUES (SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName) = Mark Bejuk, SELECT PrjectID FROM Prject WHERE PrjName = Messenger ) INSERT INTO MemberInPrject (MemberID, PrjectID) VALUES (SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName) = 'Jnas Wadsten', SELECT PrjectID FROM Prject WHERE PrjName = Messenger ) INSERT INTO MembersMsngrAccunt VALUES ( SELECT MemberID FROM TeamMember WHERE (TRIM(FirstName) ' ' LastName)= 'Mark Bejuk', SELECT MessengerID FROM Messenger WHERE MessengerName='MSN Messenger', 'markb59@htmail.cm') Edit prject same tables are used as in add prject When lgged in as Super Administratr, actr can including functins listed abve (fr Administratr) DELETE a member and als DELETE a prject. REMARK: Unrelated t any functins prvided by the Web interface, we shuld fill Messenger table in the database with all supprted types f messengers -> messenger names and prt numbers this messengers use: INSERT INTO Messenger (MessengerName, PrtNumber) VALUES ( MSN Messenger, 8001) INSERT INTO Messenger (MessengerName, PrtNumber) VALUES ( Yah Messenger, 8004) INSERT INTO Messenger (MessengerName, PrtNumber) VALUES ( ICQ Messenger, Page 10
Messenger prject Versin: 1.1 5123) Messenger Client: Messenger client uses database fr purpse f: 1. String chats and chat related infrmatin in the database 2. Retrieving chats and chat related infrmatin frm the database via. TCP/IP NOTE: Retrieving chats and chat related infrmatin is nt t be tested because it gives the same results as search made in web pages. It is shwn that search is functinal in web pages s there is n need t d the search testing nce again. These searches wuld give the same result as the nes tried befre and therefre wuld nt cntribute significantly t database test in verall. String chats and chat related infrmatin: INSERT INTO ChatDetail( CnversatinStartDateTime, CnversatinEndDateTime, RecrdedBy, Cnversatin ) VALUES ('2004-12-25 23:22:22', '2004-12-26 00:15:15',6,'Mark:This is a test!\n Mark:Testing the database!\n' ) INSERT INTO ChatDetail( CnversatinStartDateTime, CnversatinEndDateTime, RecrdedBy, Cnversatin ) VALUES ('2004-12-27 21:25:20', '2004-12-28 00:13:15',6,' jnas [ hme ] says: k gd..\n zahid says: i can nt 2\n...iffi... says: yah its gd nw ' ) INSERT INTO ChatDetail( CnversatinStartDateTime, CnversatinEndDateTime, RecrdedBy, Cnversatin ) VALUES ('2004-12-27 21:25:20', '2004-12-28 00:13:15',6,' jnas [ hme ] says: have u tried t put in inf in database?\n jnas [ hme ] says: Irfan: hw shuld the data lks like fr the cnversatins in database??\n Zdenek says: n my pc it wrks i have smething dne in my lcal db' ) INSERT INTO ChatDetail( CnversatinStartDateTime, CnversatinEndDateTime, RecrdedBy, Cnversatin ) VALUES ('2004-12-27 21:25:20', '2004-12-28 00:13:15',6,' zahid says:\n k Mark, Zedenik whats abut u, can yu make change t night\n Zdenek says: \n yes\n jnas [ hme ] says: \n Zahid: what d i need t d abut 5.2 Page 7?? \n zahid says: \n what is the heading\n Mark says: \n we( I ) have t change 6.1 and 6.2? \n jnas [ hme ] says: \n 5.2 Wrk Prducts and Deliverables\n zahid says: \n jnas can u tell me the heading\n zahid says: \n yes \n zahid says: \n wait\n jnas [ hme ] says: \n I culdnt find any 7.2 s asume that u meant 7.1... \n jnas [ hme ] says: \n what i needed t lk at... \n zahid says: \n yu have check that if any f the deliverable late, r i have written crrect\n zahid says: \n if late then if yu want t add remark yu can\n jnas [ hme ] says: \n k.. i d that... \n zahid says: \n therwise nthing\n jnas [ hme ] says: \n Zahid: I culdnt find any 7.2 s asume that u meant 7.1... \n zahid says: \n jyes yes\n zahid says: \n srry this is my mistake\n ' ) INSERT INTO ChatSessin ( ChatID, MemberID, PrjectID, MessengerID ) SELECT ChatDetail.ChatID, TeamMember.MemberId, Prject.PrjectID, MembersMsngrAccunt.MesengerAccuntID FROM ChatDetail, TeamMember, Prject, MembersMsngrAccunt WHERE TeamMember.UserName ='markbejuk' AND Prject.PrjectName ='Messenger client' AND MembersMsngrAccunt.MessengerID=1 INSERT INTO ChatSessin ( ChatID, MemberID, PrjectID, MessengerID ) Page 11
Messenger prject Versin: 1.1 VALUES ('1 ', SELECT MemberId FROM TeamMember WHERE UserName='markbejuk', SELECT PrjectID FROM Prject WHERE PrjectName ='Messenger client, SELECT MessengerAccuntID FROM MembersMsngrAccunt WHERE MessengerID = 1 ) 8. Apprvals Name Title Date yyyy-mm-dd Signature Page 12