Qt Inject Windows/en: Unterschied zwischen den Versionen
Alkurz (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Alkurz (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
== QT == |
== QT == |
||
https://www.qt.io/download |
|||
== Required Files == |
== Required Files == |
||
| Zeile 12: | Zeile 12: | ||
=== Expecco Qt Inject Script === |
=== Expecco Qt Inject Script === |
||
Batch script to start your application with the expecco test code injected. |
Batch script to start your application with the expecco test code injected. You have to change the file according to your setup. |
||
Filename: <br> |
Filename: <br> |
||
| Zeile 29: | Zeile 29: | ||
Location: <br> |
Location: <br> |
||
<code><qt client directory>expeccoTestService_InjectTool\bin\<CompilerVersion>\<CompilerArchitecture>\</code> |
<code><qt client directory>expeccoTestService_InjectTool\bin\<CompilerVersion>\<CompilerArchitecture>\</code> |
||
=== Expecco Test Service Library === |
=== Expecco Test Service Library === |
||
| Zeile 41: | Zeile 40: | ||
<code><qt client directory>\bin\<CompilerVersion>_<CompilerArchitecture>_Qt<QtVersion>\</code> |
<code><qt client directory>\bin\<CompilerVersion>_<CompilerArchitecture>_Qt<QtVersion>\</code> |
||
== Inject == |
== Expecco Qt Inject Script == |
||
You have to define the paths according to you setup: |
|||
=== QTDIR === |
|||
https://www.qt.io/download |
|||
Path of the QT directory on your system, dependent on qt and compiler version. |
|||
Example <br> |
|||
<code>C:\QT\5.9.1\msvc2017_64</code> |
|||
=== ExpeccoTestServiceInject === |
|||
Path and filename of the 'Expecco Qt Inject Program'. |
|||
=== ExpeccoTestService === |
|||
Path and filename of the 'Expecco Test Service Library' |
|||
=== ApplicationDirectory, ApplicationName === |
|||
Directory and name of the application to be tested. |
|||
== Logging == |
|||
You can activate the logging by removing the comment of two lines of the 'Expecco Qt Inject Script' and modifying the log level. |
|||
set ETS_QT_LOG_FILE=c:\\Windows\\temp\\etsQt.log |
|||
set ETS_QT_LOG_LEVEL=2 |
|||
Version vom 21. Juli 2020, 10:03 Uhr
QT
Required Files
To inject the expecco test code in your application you need 3 files.
All files are in the qt client directory:
<expecco-installaton-dir>\packages\exept\expecco\plugin\qt\expeccoQtClient\expeccoTestService
Expecco Qt Inject Script
Batch script to start your application with the expecco test code injected. You have to change the file according to your setup.
Filename:
ets_Inject-template.bat
Location:
<qt client directory>expeccoTestService_InjectTool\injectScript\
Expecco Qt Inject Program
Program to inject the expecco test code.
Filename:
etsInject.exe
Location:
<qt client directory>expeccoTestService_InjectTool\bin\<CompilerVersion>\<CompilerArchitecture>\
Expecco Test Service Library
Library with the expecco test code.
Filename:
ExpeccoTestService.dll
Location:
<qt client directory>\bin\<CompilerVersion>_<CompilerArchitecture>_Qt<QtVersion>\
Expecco Qt Inject Script
You have to define the paths according to you setup:
QTDIR
Path of the QT directory on your system, dependent on qt and compiler version.
Example
C:\QT\5.9.1\msvc2017_64
ExpeccoTestServiceInject
Path and filename of the 'Expecco Qt Inject Program'.
ExpeccoTestService
Path and filename of the 'Expecco Test Service Library'
ApplicationDirectory, ApplicationName
Directory and name of the application to be tested.
Logging
You can activate the logging by removing the comment of two lines of the 'Expecco Qt Inject Script' and modifying the log level.
set ETS_QT_LOG_FILE=c:\\Windows\\temp\\etsQt.log set ETS_QT_LOG_LEVEL=2