Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2008 Wipro Ltd - Confidential Grammar Test Framework DBMS-3 Leader : Harish Narayana / Minho Hwang Member : Sook-youn Kwon, Jong-hyeok Lim Yu-jin Bae,

Similar presentations


Presentation on theme: "© 2008 Wipro Ltd - Confidential Grammar Test Framework DBMS-3 Leader : Harish Narayana / Minho Hwang Member : Sook-youn Kwon, Jong-hyeok Lim Yu-jin Bae,"— Presentation transcript:

1 © 2008 Wipro Ltd - Confidential Grammar Test Framework DBMS-3 Leader : Harish Narayana / Minho Hwang Member : Sook-youn Kwon, Jong-hyeok Lim Yu-jin Bae, Jeong-kyeom Kim Man-jae Ha, Khushboo, Jayesh 2009. 11. 27 1

2 © 2008 Wipro Ltd - Confidential Agenda 2 IntroductionProject ScopeDemo StepLimitation and Future workSQL Grammar (BNF)

3 © 2008 Wipro Ltd - Confidential Introduction Log File BNF File SQL Query Generator User Interface AnalyzerLogger DB Manager Grammar Test Framework Embedded DB Introduction : - The Grammar Test Framework is the solution to assure Quality for the database vendors. - You can test your DBMS with various other DBMS(s) for consistency in results. - To test DBMS for their ANSI SQL 2003 compliance.

4 © 2008 Wipro Ltd - Confidential SQL Grammar (BNF) BNF Grammar for ISO/IEC 9075-2:2003 ::= SELECT [ ] ::= DISTINCT | ALL ::= | ::= ::= | ::= ::= AVG | MAX | MIN | SUM | COUNT ::= [ ] ….. and so on ::= SELECT [ ] ::= DISTINCT | ALL ::= | ::= ::= | ::= ::= AVG | MAX | MIN | SUM | COUNT ::= [ ] ….. and so on

5 © 2008 Wipro Ltd - Confidential Project Scope Select Query NoClauseDescription 1Simple querySELECT columns FROM tables 2WHEREWHERE columns op condition 3GROUP BYGROUP BY columns 4HAVINGHAVING columns 5Aggregate Functionfunction (columns) 6ORDER BYORDER BY columns sort type 7JOIN expressiontable join type table ON condition 8Sub-Query (1 level) FROM (sub-query) alias WHERE column op (sub-query) Having column op (sub-query) - Generating Select Query

6 © 2008 Wipro Ltd - Confidential Demo Step – 1.Select SQL BNF file

7 © 2008 Wipro Ltd - Confidential Demo Step – 2.Add DBMS to test

8 © 2008 Wipro Ltd - Confidential Demo Step – 2.Add DBMS to test Log File Main Frame (GUI) UI Controller Display Controller Server Controller Testing Controller Monitoring Logger Test DB Setter Generator (Random Query) Domain Grammar Parser Analyzer DBMS Manager Schema Builder Grammar Reader DBMS3 Embedded Server DBMS1DBMS2 Property File BNF File Setting DBGenerate QueryFire QueryAnalyze result View Controller Model [ MVC model ] Controller View Model Model-view-control (MVC) is an architectural pattern used in software engineering. The pattern isolates business logic from input and presentation. Permitting independent development, testing and maintenance of each.

9 © 2008 Wipro Ltd - Confidential Demo Step – 3.Start testing

10 © 2008 Wipro Ltd - Confidential Demo Step – 3.Start testing Log File Main Frame (GUI) UI Controller Display Controller Server Controller Testing Controller Monitoring Logger Test DB Setter Generator (Random Query) Domain Grammar Parser Analyzer DBMS Manager Schema Builder Grammar Reader DBMS3 Embedded Server DBMS1DBMS2 Property File BNF File SQL QUERY View Controller Model [ MVC model ] Setting DBGenerate QueryFire QueryAnalyze result

11 © 2008 Wipro Ltd - Confidential Demo Step – 3.Start testing Log File Main Frame (GUI) UI Controller Display Controller Server Controller Testing Controller Monitoring Logger Test DB Setter Generator (Random Query) Domain Grammar Parser Analyzer DBMS Manager Schema Builder Grammar Reader DBMS3 Embedded Server DBMS1DBMS2 Property File BNF File Setting DBGenerate QueryAnalyze resultFire Query View Controller Model [ MVC model ]

12 © 2008 Wipro Ltd - Confidential Demo Step – 4.Anlyze Result of Query Log File Main Frame (GUI) UI Controller Display Controller Server Controller Testing Controller Monitoring Logger Test DB Setter Generator (Random Query) Domain Grammar Parser Analyzer DBMS Manager Schema Builder Grammar Reader DBMS3 Embedded Server DBMS1DBMS2 Property File BNF File Setting DBGenerate QueryFire QueryAnalyze result View Controller Model [ MVC model ]

13 © 2008 Wipro Ltd - Confidential Demo Step – 5.View Testing Log

14 © 2008 Wipro Ltd - Confidential Demo Step – 5.View Testing Log

15 © 2008 Wipro Ltd - Confidential Limitation and Future work 1 Limitation  Presently only 77 production rules in the SQL BNF grammar file  Uses predefined Logical Data Model information  Difficulty in implementing classes for extendibility of SQL BNF grammar 2 Future work  Support for various SQL Query. (DML, DDL and DCL)  Generate query of all possible combination.  Extendibility to apply SQL Grammar file from DBMS vendors.  Use dynamic logical data model information define by user

16 © 2008 Wipro Ltd - Confidential Min-ho Hwang Project Leader Hwang.minho@wipro.com Thank You November11, 200916 © 2008 Wipro Ltd - Confidential


Download ppt "© 2008 Wipro Ltd - Confidential Grammar Test Framework DBMS-3 Leader : Harish Narayana / Minho Hwang Member : Sook-youn Kwon, Jong-hyeok Lim Yu-jin Bae,"

Similar presentations


Ads by Google