เริ่มต้นทำ Robot Framework-Jenkins CI
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
- Select “Git” Radio button
- The clone URL
- Specify a Git branch
- Create and select new Jenkins credential
- Add “Execute Windows Batch File Command”
- Supply robot ( pybot ) command line
- Add “Public Robot Results” post-build actions
- Specify “Results” for “Directory of Robot output” field
- Advance button to supply names
- Save
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
สำหรับการ Create Jenkins Jobs for Automate test And How to run/review results ไม่มีอะไรยากเลยใช่ไหมคะ หวังว่าทุกคนจะ enjoy กับการใช้ Jenkins ในการ Run robot Test กันนะคะ