Ananas Library  0.9.5
atests.h
1 /****************************************************************************
2 ** $Id: atests.h,v 1.5 2006/08/23 08:30:04 app Exp $
3 **
4 ** Tests functions header file of
5 ** Ananas application library
6 **
7 ** Created : 20051024
8 **
9 ** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola.
10 **
11 ** This file is part of the Designer application of the Ananas
12 ** automation accounting system.
13 **
14 ** This file may be distributed and/or modified under the terms of the
15 ** GNU General Public License version 2 as published by the Free Software
16 ** Foundation and appearing in the file LICENSE.GPL included in the
17 ** packaging of this file.
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
22 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
23 ** See http://www.leaderit.ru/gpl/ for GPL licensing information.
24 **
25 ** Contact org@leaderit.ru if any conditions of this licensing are
26 ** not clear to you.
27 **
28 **********************************************************************/
29 
30 #ifndef ATESTS_H
31 #define ATESTS_H
32 
33 #include "ananas.h"
34 #include <qmap.h>
35 
45 class ANANAS_EXPORT aTests
46 {
47  public:
48 
49  static QMap<QString, QString> readConfig(const QString &cfg_name, const QString &log_name=QString::null);
50  static bool writeConfig(const QString &cfg_name,QMap<QString, QString> cfg, const QString &log_name=QString::null);
51  static void print2log( const QString &log_name,
52  const QString &test_name,
53  const QString &status,
54  const QString &text="");
55 
56  static void printline2log(const QString &log_name);
57  static QString parseCommandLine(int argc, char** argv, const QString requestedParam);
58 
59  private:
60  aTests();
61 };
62 #endif// ATESTS_H
Класс содержит статические функции для утилит тестирования.
Definition: atests.h:45