Sei sulla pagina 1di 11

Configuration Automation Test

to run on CI Jenkin Server


Presented by Eric
Requirements & Environment
 Jenkin Slaves.
 Test Studio (Telerik)
 Basic knowledge about command line
 Basic knowledge about Jenkin
 Java
 Preparing folders on your machine
- C:\RunAT (where Jenkin slave works)
- C:\RunAT\TFS (store automation source)
- C:\RunAT\Data (store DB)
Create Jenkin Slave (1/4)
 Login Jenkin server as your team’s account
 Manage Jenkins  Manage Nodes  New Node
Create Jenkin Slave (2/4)
 Download slave file to your machine.
(Ex: C:\RunAT\CISlaves)
 Rename it to slave-agent-CI1.jnlp
(To run this file, Java is required)
Create Jenkin Slave (3/4)
 Create a file .bat to run this file from command line (Ex: AT_StartJenkin.bat)

"C:\Program Files\Java\jre1.8.0_144\bin\javaws" C:\RunAT\CISlaves\slave-agent-CI1.jnlp

 Make below files always run as Administrator:

- java.exe

- javaws.exe

- javaw.exe

- C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe

- AT_StartJenkin.bat (using registry)

- Command line (right click on short cut then set it run as admin)
Create Jenkin Slave (4/4)
 Add registry key to allow run file slave as
Admin
Computer\HKEY_LOCAL_MACHINE\SOFTW
ARE\Microsoft\Windows
NT\CurrentVersion\AppCompatFlags\Layers
Create Job on Jenkin 1 to deploy
build
 Go to tab “Deploy Builds” on CI
 Click “New Item”
 Fill necessary info  Run this job to create workspace
(Tip: using function “copy from”)
Add Jenkin slave on CI2 to run AT
 Do steps as the same with CI1
Create Job on Jenkin 2 to run AT

Call to run file RunAT.bat


Some extended utilities
1. Using window service to kill hang browser while running AT
(ATDetectHangBrowsersWS.exe)

2. Util that allow to collect failed test scripts automatically then re-run one
more time (CollectATInfo.exe)

3. Util that support Install/UnInstall FMSupport Tool by command line


(UninstallTool.exe)

4. Util that replace some unwanted settings in TestList as well as in AT


Projects settings (ATTool.exe) before running

a. Base Url of TestList Setting  Set this value empty.

b. Replace Default WPF default application path -> replace with the current build path.

5. Plug-in to allow store AT result with a flexible result filter that running on
multiple machine (CollectATResult.dll)

6. Util that used to generate AT result as excel file (Util4BuildFMI.exe)


How to make Slaves started with
Windows
 Computer\HKEY_LOCAL_MACHINE\SO
FTWARE\Microsoft\Windows\CurrentVers
ion\Run

Potrebbero piacerti anche