Example of architecture of testing framework for database:
Compilation-based:
1) get definition of database:
2) get (f)lex rules on database statements.
3) define testing profile (confioguration)
4) Write interpreter and tests builder (flex + yacc) based.
+-----------------------+ +---------------+
| DB statements syntax | | test profile |
+-----------------------+ +---------------+
|| ||
|| ||
\/ \/
+---------+ +-----------+
| flex | | yacc |
+---------+ +-----------+
\\ //
\\ //
\\ //
\\ //
\| |/
+----+ +-------------------------+ +---------------+
| DB |==>| test framework |===>| test results |
+----+ +-------------------------+ +---------------+
//
//
//
|/
+--------+
| Graphs |
+--------+
Interpretable:
+-----------------------+ +------------------------+
| DB statements syntax | | test processing rules |
+-----------------------+ +------------------------+
|| ||
|| +---------+ ||
\/ | profile | \/
+---------+ +---------+ +-----------+
| flex | || | yacc |
+---------+ \/ +-----------+
\\ +---------+ //
\\ | dotconf | //
\\ +---------+ //
\\ || //
\| \/ |/
+----+ +-------------------------+ +---------------+
| DB |==>| test framework |===>| test results |
+----+ +-------------------------+ +---------------+
//
//
//
|/
+--------+
| Graphs |
+--------+
No comments:
Post a Comment