Skip to content

thongnmtran/katalon-google-cloud-build

Repository files navigation

Katalon Google Cloud Build

Katalon Google Cloud Build

Status GitHub Issues GitHub Pull Requests License


A sample project of using Katalon Docker image with Google Cloud Build

📝 Table of Contents

🏁 Getting Started

Prerequisites

image

Setup a cloud build project

  • Create a cloudbuild.yaml file at the root of your katalon project
steps:
- name: 'docker'
  args: ['pull', 'katalonstudio/katalon']
- name: 'docker'
  entrypoint: 'sh'
  args: ['-c', 'docker run -t --rm -v /workspace:/tmp/project katalonstudio/katalon katalonc.sh -projectPath=/tmp/project -browserType="Chrome" -retry=0 -retryStrategy=immediately -testSuiteCollectionPath="Test Suites/Simple Test Suite Collection" --config -webui.autoUpdateDrivers=true -apiKey=$$KATALON_API_KEY']
  secretEnv: ['KATALON_API_KEY']
availableSecrets:
  secretManager:
  - versionName: projects/$PROJECT_ID/secrets/KATALON_API_KEY/versions/1
    env: 'KATALON_API_KEY'

image

🚀 Running the tests

Now to run the test, you only need to create a trigger on the cloud build and run it manually or automatically

Connect to repo & Create a trigger

You can refer to the following document to create a build trigger: Creating a build trigger

image

Run a build trigger

Now you can run the newly created trigger manually from Trigger Manager page, or base on the type of the trigger, it can also be triggered automatically.

image

Watching the build

After triggering the build, you can go to History tab on the Google Cloud Build and watch the progress.

image

image

📋 Reporting

To view the reports from the build, you can enable Katalon TestOps Integration on your project. After that, every report will be uploaded automatically to the TestOps server and you can go there to see the testing results.

image

🧐 References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published