Dev
This commit is contained in:
@@ -280,3 +280,13 @@ bool CAutomatedTestReport::IsAutomatedTestSuccess()
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
QString CAutomatedTestReport::GetPretestResult()
|
||||
{
|
||||
if(mPreTestResult)
|
||||
{
|
||||
return "Succès";
|
||||
}
|
||||
|
||||
return "Échec";
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
QString GetPinSecondTestResult(int PinNumber);
|
||||
QString GetShortedPins(int PinNumber);
|
||||
QString GetWrongPin(int PinNumber);
|
||||
QString GetPretestResult();
|
||||
|
||||
int SetPreTestResult(bool PreTestPassed);
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ CCableTestBench::CCableTestBench(QObject *parent) :
|
||||
mActualCable(CConnectorDefs::UNKNOWN_CONNECTOR_TYPE,&mIOInterface)
|
||||
{
|
||||
w = new MainWindow(0,this);
|
||||
w->setWindowTitle("Cablotron");
|
||||
}
|
||||
|
||||
CCableTestBench::~CCableTestBench()
|
||||
|
||||
@@ -14,13 +14,6 @@ CMainPage::CMainPage(QWidget *parent) :
|
||||
|
||||
ui->mMainTabWidget->clear();
|
||||
|
||||
|
||||
// SM_HANDLE hndl;
|
||||
// SM_Open(&hndl,"192.168.0.101");
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
CMainPage::~CMainPage()
|
||||
|
||||
@@ -8,11 +8,6 @@ MainWindow::MainWindow(QWidget *parent,CCableTestBench* ProgramHandle)
|
||||
{
|
||||
resize(1800,890);
|
||||
|
||||
// mMainPage = new CMainPage();
|
||||
// mVisualInspPage = new CVisualInspectionPage(this);
|
||||
// mVisualInspPage->hide();
|
||||
// mCableTestPage = new CCableTestPage(this);
|
||||
|
||||
mMainPage = new CMainPage(this);
|
||||
mVisualInspPage = new CVisualInspectionPage(this);
|
||||
mVisualInspPage->hide();
|
||||
|
||||
@@ -120,6 +120,7 @@ int CTestReport::SaveReportToFile()
|
||||
ReportStream << mVisualInspectionResultReport.mVerifNotesText << "\n\n";
|
||||
ReportStream << "-----------------------------------------\n";
|
||||
ReportStream << QString("Résultats du test automatique du câble:\n");
|
||||
ReportStream << QString("Pré-test des modules d'I/O: ") << mAutomatedTestReport.GetPretestResult() << "\n";
|
||||
ReportStream << QString("Lorsqu'applicable, les valeurs entre crochets [] correspondent aux contacts en défaut.\n\n");
|
||||
ReportStream.setFieldWidth(15);
|
||||
ReportStream.setFieldAlignment(QTextStream::AlignCenter);
|
||||
@@ -144,6 +145,7 @@ int CTestReport::SaveReportToFile()
|
||||
|
||||
|
||||
ReportStream << QString("\n\n\n Signature de l'opérateur de test: _________________________________________\n\n");
|
||||
ReportStream << QString(" Date: _________________________________________\n\n");
|
||||
ReportStream << "-----------------------------------------\n";
|
||||
ReportStream << "Log du test:\n";
|
||||
ReportStream << mTestLog;
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
bool IsAutoTestReportReady();
|
||||
bool GetGlobalAutoTestResult();
|
||||
|
||||
|
||||
int SaveReportToFile();
|
||||
|
||||
QString GetLastReportFileName();
|
||||
|
||||
+3
-1
@@ -6,7 +6,9 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
|
||||
CCableTestBench CableTestBench;
|
||||
QCoreApplication::setApplicationName("Testeur de cables");
|
||||
QApplication::setApplicationName("Test");
|
||||
CCableTestBench CableTestBench;
|
||||
CableTestBench.Start();
|
||||
|
||||
return a.exec();
|
||||
|
||||
Reference in New Issue
Block a user