SilkTest Question 28: How to start installation testing?

The QA department assigned for installation testing of our software product. I as A Lead Test Engineer try to develop 4test script which will recognize the correct path for installation CD-ROM drive and launch application. Can you give me some clue to start?


To recognize drive letter to CD-ROM, you have to use API with name GetDriveType(). See the 4test code written below:

[-] dll "kernel32.dll"
[ ] long GetDriveTypeA(inout String strDrive)
[ ]
[-] testcase GetDriveName() appstate none
[ ] GetCDDriveLetter()
[ ]
[ ]
[-] String GetCDDriveLetter()
[ ] integer i
[ ]
[-] for i=67 to 90
[ ] String strDrive=chr(i)+":\"
[-] if GetDriveTypeA(strDrive)==5
[ ] print(strDrive)
[ ] return(chr(i))
[ ] return " "


To launch application from the installation CD you can use the following 4test script

use "bwcompat.inc"
[-] testcase LaunchFromCD () appstate none
[ ] STRING sStart = "{GetCDDriveLetter ()}:\{strPathToSetupFile.Exe}"
[ ] App_Start (sStart)

App_Start is described in bwcompat.inc file file that comes with Silk Test.

No comments:

SilkTest interview questions for QA Testers