diff options
Diffstat (limited to 'test-framework/site')
13 files changed, 236 insertions, 0 deletions
diff --git a/test-framework/site/TestCases/testcase-linux64/checker/testinstall.filelist b/test-framework/site/TestCases/testcase-linux64/checker/testinstall.filelist new file mode 100644 index 000000000..30aecdabc --- /dev/null +++ b/test-framework/site/TestCases/testcase-linux64/checker/testinstall.filelist @@ -0,0 +1,5 @@ +components.xml; 2050; 6813144fd09f7d39764702e5adb91679wrong +index.html; 46; fd40a94472ea1d13d93221c5ce62c321 +uninstall.exe; 13598393; 44945e7d3507d294b5e9e096ac3269b1 +include\QtCore\qobject.h; 108; 9e50d789f32d1651e16b6ae55699eb71 +include\QtGui\qwidget.h; 108; 67dc776dd5aa66741dab6a2eeec4ac3c diff --git a/test-framework/site/TestCases/testcase-linux64/testcase-linux64.cfg b/test-framework/site/TestCases/testcase-linux64/testcase-linux64.cfg new file mode 100644 index 000000000..ffbc24556 --- /dev/null +++ b/test-framework/site/TestCases/testcase-linux64/testcase-linux64.cfg @@ -0,0 +1,5 @@ +[General] +installscript=testscript.qs +platforms=linux64 +targetDirectory=/home/kdab/testinstall +checkerTestDir=checker diff --git a/test-framework/site/TestCases/testcase-linux64/testscript.qs b/test-framework/site/TestCases/testcase-linux64/testscript.qs new file mode 100644 index 000000000..3cc4bd4d6 --- /dev/null +++ b/test-framework/site/TestCases/testcase-linux64/testscript.qs @@ -0,0 +1,67 @@ +function Controller() +{ + installer.autoRejectMessageBoxes + installer.setMessageBoxAutomaticAnswer( "overwriteTargetDirectory", QMessageBox.Yes ) +} + + +Controller.prototype.IntroductionPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.LicenseAgreementPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "LicenseAgreementPage" ) + page.acceptLicenseRB.setChecked( true ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.TargetDirectoryPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "TargetDirectoryPage" ) + page.targetDirectoryLE.setText( "/home/kdab/testinstall" ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.ComponentSelectionPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "ComponentSelectionPage" ) + page.deselectComponent( "com.nokia.ndk.tools.maemo.usbdriver" ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.DynamicQtGuiPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "DynamicQtGuiPage" ) + page.checkBoxLib.setChecked( false ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.DynamicErrorPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "DynamicErrorPage" ) + page.checkBoxMakeSure.setChecked( true ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.ReadyForInstallationPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.StartMenuDirectoryPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.PerformInstallationPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "PerformInstallationPage" ) + page.details.button.click +} + +Controller.prototype.FinishedPageCallback = function() +{ + gui.clickButton( buttons.FinishButton ) +} diff --git a/test-framework/site/TestCases/testcase1/checker/testinstall.filelist b/test-framework/site/TestCases/testcase1/checker/testinstall.filelist new file mode 100644 index 000000000..30aecdabc --- /dev/null +++ b/test-framework/site/TestCases/testcase1/checker/testinstall.filelist @@ -0,0 +1,5 @@ +components.xml; 2050; 6813144fd09f7d39764702e5adb91679wrong +index.html; 46; fd40a94472ea1d13d93221c5ce62c321 +uninstall.exe; 13598393; 44945e7d3507d294b5e9e096ac3269b1 +include\QtCore\qobject.h; 108; 9e50d789f32d1651e16b6ae55699eb71 +include\QtGui\qwidget.h; 108; 67dc776dd5aa66741dab6a2eeec4ac3c diff --git a/test-framework/site/TestCases/testcase1/testcase1.cfg b/test-framework/site/TestCases/testcase1/testcase1.cfg new file mode 100644 index 000000000..178613640 --- /dev/null +++ b/test-framework/site/TestCases/testcase1/testcase1.cfg @@ -0,0 +1,5 @@ +[General] +installscript=testscript.qs +platforms=windows,linux +targetDirectory=c:\testinstall +checkerTestDir=checker diff --git a/test-framework/site/TestCases/testcase1/testscript.qs b/test-framework/site/TestCases/testcase1/testscript.qs new file mode 100644 index 000000000..59bf25e3c --- /dev/null +++ b/test-framework/site/TestCases/testcase1/testscript.qs @@ -0,0 +1,67 @@ +function Controller() +{ + installer.autoRejectMessageBoxes + installer.setMessageBoxAutomaticAnswer( "overwriteTargetDirectory", QMessageBox.Yes ) +} + + +Controller.prototype.IntroductionPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.LicenseAgreementPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "LicenseAgreementPage" ) + page.acceptLicenseRB.setChecked( true ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.TargetDirectoryPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "TargetDirectoryPage" ) + page.targetDirectoryLE.setText( "c:\\testinstall" ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.ComponentSelectionPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "ComponentSelectionPage" ) + page.deselectComponent( "com.nokia.ndk.tools.maemo.usbdriver" ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.DynamicQtGuiPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "DynamicQtGuiPage" ) + page.checkBoxLib.setChecked( false ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.DynamicErrorPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "DynamicErrorPage" ) + page.checkBoxMakeSure.setChecked( true ) + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.ReadyForInstallationPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.StartMenuDirectoryPageCallback = function() +{ + gui.clickButton( buttons.NextButton ) +} + +Controller.prototype.PerformInstallationPageCallback = function() +{ + var page = gui.pageWidgetByObjectName( "PerformInstallationPage" ) + page.details.button.click +} + +Controller.prototype.FinishedPageCallback = function() +{ + gui.clickButton( buttons.FinishButton ) +} diff --git a/test-framework/site/VMConfigs/LinuxUbuntu9.1064Bit.cfg b/test-framework/site/VMConfigs/LinuxUbuntu9.1064Bit.cfg new file mode 100644 index 000000000..a5c19e084 --- /dev/null +++ b/test-framework/site/VMConfigs/LinuxUbuntu9.1064Bit.cfg @@ -0,0 +1,8 @@ +[General] +snapshot=base +username=kdab +password=kdab +vmx=[standard] Linux Ubuntu 9.10 64 Bit/Linux Ubuntu 9.10 64 Bit.vmx +tempDir=/home/kdab +os=linux64 +python=/usr/bin/python diff --git a/test-framework/site/VMConfigs/WindowsVista32Bit.cfg b/test-framework/site/VMConfigs/WindowsVista32Bit.cfg new file mode 100644 index 000000000..40a49d2f1 --- /dev/null +++ b/test-framework/site/VMConfigs/WindowsVista32Bit.cfg @@ -0,0 +1,9 @@ +[General] +snapshot=base +username=kdab +password=kdab +vmx=[standard] Windows Vista 32 Bit/Windows Vista 32 Bit.vmx +tempDir=c:\Users\kdab\Desktop +os=windows +python=c:\Python26\python.exe + diff --git a/test-framework/site/VMConfigs/WindowsVista64Bit.cfg b/test-framework/site/VMConfigs/WindowsVista64Bit.cfg new file mode 100644 index 000000000..c46d8fba5 --- /dev/null +++ b/test-framework/site/VMConfigs/WindowsVista64Bit.cfg @@ -0,0 +1,9 @@ +[General] +snapshot=base +username=kdab +password=kdab +vmx=[standard] Windows XP 32 Bit/Windows XP 32 Bit.vmx +tempDir=c:\Dokumente und Einstellungen\kdab\Desktop +os=windows +python=c:\Python26\python.exe + diff --git a/test-framework/site/VMConfigs/WindowsXp32Bit.cfg b/test-framework/site/VMConfigs/WindowsXp32Bit.cfg new file mode 100644 index 000000000..c46d8fba5 --- /dev/null +++ b/test-framework/site/VMConfigs/WindowsXp32Bit.cfg @@ -0,0 +1,9 @@ +[General] +snapshot=base +username=kdab +password=kdab +vmx=[standard] Windows XP 32 Bit/Windows XP 32 Bit.vmx +tempDir=c:\Dokumente und Einstellungen\kdab\Desktop +os=windows +python=c:\Python26\python.exe + diff --git a/test-framework/site/VMConfigs/WindowsXp64Bit.cfg b/test-framework/site/VMConfigs/WindowsXp64Bit.cfg new file mode 100644 index 000000000..effbbd70d --- /dev/null +++ b/test-framework/site/VMConfigs/WindowsXp64Bit.cfg @@ -0,0 +1,9 @@ +[General] +snapshot=base +username=kdab +password=kdab +vmx=[standard] Windows XP 64 Bit/Windows XP 64 Bit.vmx +tempDir=c:\Documents and Settings\kdab\Desktop +os=windows +python=c:\Python26\python.exe + diff --git a/test-framework/site/host-config.cfg b/test-framework/site/host-config.cfg new file mode 100644 index 000000000..f500e6fc9 --- /dev/null +++ b/test-framework/site/host-config.cfg @@ -0,0 +1,37 @@ +[General] +vmrun=vmrun +checkerInstallation=/home/kdab/test/installerfw/installer/test-framework/checker +testcase0=TestCases/testcase1/testcase1.cfg +testcase1=TestCases/testcase-linux64/testcase-linux64.cfg +vm0=VMConfigs/WindowsXp32Bit.cfg +vm1=VMConfigs/WindowsXp64Bit.cfg +vm2=VMConfigs/WindowsVista32Bit.cfg +vm3=VMConfigs/LinuxUbuntu9.1064Bit.cfg +gui=False +createErrorSnapshots=False + +[Host] +type=server +location=https://172.25.167.23:8333/sdk +username=kdab +password=kdab + +[CDash] +host=localhost +location=/CDash +project=test1 + +[Source0] +host=hegel +path=/projects/ndk/installers/windows +platform=windows + +[Source1] +host=hegel +path=/projects/ndk/installers/linux/x32 +platform=linux32 + +[Source2] +host=hegel +path=/projects/ndk/installers/linux/x64 +platform=linux64 diff --git a/test-framework/site/listVMs.sh b/test-framework/site/listVMs.sh new file mode 100644 index 000000000..e9d5342d4 --- /dev/null +++ b/test-framework/site/listVMs.sh @@ -0,0 +1 @@ +vmrun -u kdab -p kdab -T server -h https://172.25.167.23:8333/sdk listRegisteredVM |