-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunTests.ps1
37 lines (29 loc) · 3.31 KB
/
RunTests.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
param([string]$logpath='.\')
$testfolder = $logpath
$wfstestfile = '\\admt-fs01.admt.aau.dk\tests\test.xlsx'
$wfsiotestfile = '\\admt-fs01.admt.aau.dk\tests\testfile.dat'
$testfile = '\\its.aau.dk\Fileshares\infrastruktur\TeamArkitektOgProjektledere\bk\test.xlsx'
$iotestfile = '\\its.aau.dk\Fileshares\infrastruktur\TeamArkitektOgProjektledere\bk\testfile.dat'
#Start standard tests
.\GetBasicInfo.ps1 -logpath $testfolder
.\FileCopyTest.ps1 -filepath $testfile -numberofruns 200 -logpath $testfolder
.\ExcelTest.ps1 -filepath $testfile -numberofruns 200 -logpath $testfolder
.\ioTest.ps1 -filepath $iotestfile -numberofruns 2 -logpath $testfolder
.\TestNet.ps1 -logpath $testfolder
#Test agains a windows fileserver...
.\FileCopyTest.ps1 -filepath $wfstestfile -numberofruns 200 -logpath $testfolder
.\ExcelTest.ps1 -filepath $wfstestfile -numberofruns 200 -logpath $testfolder
.\ioTest.ps1 -filepath $wfsiotestfile -numberofruns 2 -logpath $testfolder
#Then with the Users document folder...
$userpath = "\\" + $env:USERDNSDOMAIN + "\Users\" + $env:USERNAME + "\Documents"
Copy-Item $wfstestfile $userpath
$usertestfile = "$userpath\test.xlsx"
$useriotestfile = "$userpath\testfile.dat"
.\FileCopyTest.ps1 -filepath $usertestfile -numberofruns 200 -logpath $testfolder
.\ExcelTest.ps1 -filepath $usertestfile -numberofruns 200 -logpath $testfolder
.\ioTest.ps1 -filepath $useriotestfile -numberofruns 2 -logpath $testfolder
#Cleanup after testfiles...
If (Test-Path $usertestfile) { Remove-Item $usertestfile }
If (Test-Path $useriotestfile) { Remove-Item $useriotestfile }
#Test Outlook
.\OutlookTest.ps1 -numberofruns 10 -logpath $testfolder