เริ่มต้นทำ Robot Framework-Jenkins CI

Piyathida San-aoun
3 min readJul 7, 2019

--

Jenkins คือ web application ที่มีคุณสมบัติในการทำ continuous integration และ deployment

สำหรับ Automated function test นั้นจะเป็นส่วนหนึ่งใน CD(continuous Deployment Pipeline) ดังภาพด้านล่าง

ซึ่งบทความนี้ จะไม่ได้อธิบายถึง CI/CD คืออะไร แต่เราจะมาสาธิต วิธีการ Ceate project run robot framework บน Jenkins และการ review results

Create Jenkins Jobs

  • Click the “New Item” link

1. Provide Name

2. select “Freestyle”

3. click “OK”

  • Config Git option
  1. Select “Git” Radio button
  2. The clone URL
  3. Specify a Git branch
  4. Create and select new Jenkins credential
  • Add “Execute Windows Batch File Command”
  1. Supply robot ( pybot ) command line
  • Add “Public Robot Results” post-build actions
  1. Specify “Results” for “Directory of Robot output” field
  2. Advance button to supply names
  3. Save
Project create succeed

Run a Jenkins Jobs

  • Click the “Jenkins” link to go to the dashboard
  • Click the play button on the right side of any job
  • Click a new browser window should open and start running
Can review on the console output
The results
Click review results
The Automated Test Results
The Automated Test Results

สำหรับการ Create Jenkins Jobs for Automate test And How to run/review results ไม่มีอะไรยากเลยใช่ไหมคะ หวังว่าทุกคนจะ enjoy กับการใช้ Jenkins ในการ Run robot Test กันนะคะ

--

--

Piyathida San-aoun
Piyathida San-aoun

Written by Piyathida San-aoun

Software Developer Engineer In Test

No responses yet