File indexing completed on 2024-04-28 07:33:04
0001 /* KStars UI tests 0002 SPDX-FileCopyrightText: 2020 Eric Dejouhanet <eric.dejouhanet@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef TESTEKOSCAPTURE_H 0008 #define TESTEKOSCAPTURE_H 0009 0010 #include "config-kstars.h" 0011 0012 #if defined(HAVE_INDI) 0013 0014 #include "test_ekos_capture_helper.h" 0015 0016 #include <QObject> 0017 #include <QPushButton> 0018 #include <QComboBox> 0019 #include <QDoubleSpinBox> 0020 #include <QSpinBox> 0021 #include <QCheckBox> 0022 #include <QTest> 0023 0024 0025 class TestEkosCapture : public QObject 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 explicit TestEkosCapture(QObject *parent = nullptr); 0031 0032 private: 0033 TestEkosCaptureHelper *m_CaptureHelper = new TestEkosCaptureHelper(); 0034 0035 private slots: 0036 void initTestCase(); 0037 void cleanupTestCase(); 0038 0039 void init(); 0040 void cleanup(); 0041 0042 /** @brief Test addition, UI sync and removal of capture jobs. */ 0043 void testAddCaptureJob(); 0044 0045 /** @brief Test that storing to a system temporary folder makes the capture a preview. */ 0046 void testCaptureToTemporary(); 0047 0048 /** @brief Test capturing a single frame in multiple attempts. */ 0049 void testCaptureSingle(); 0050 0051 /** @brief Test capturing multiple frames in multiple attempts. */ 0052 void testCaptureMultiple(); 0053 0054 /** 0055 * @brief Test dark flat frames capture after flat frame 0056 */ 0057 void testCaptureDarkFlats(); 0058 }; 0059 0060 #endif // HAVE_INDI 0061 #endif // TESTEKOSCAPTURE_H