{"id":15667378,"url":"https://github.com/linuxsuren/ks-ui-test","last_synced_at":"2026-01-20T07:05:46.343Z","repository":{"id":39591676,"uuid":"320578101","full_name":"LinuxSuRen/ks-ui-test","owner":"LinuxSuRen","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-12T11:01:50.000Z","size":61,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T07:36:00.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinuxSuRen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-11T13:13:37.000Z","updated_at":"2020-12-29T03:14:41.000Z","dependencies_parsed_at":"2023-02-09T11:30:19.481Z","dependency_job_id":null,"html_url":"https://github.com/LinuxSuRen/ks-ui-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"LinuxSuRen/github-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fks-ui-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fks-ui-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fks-ui-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fks-ui-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxSuRen","download_url":"https://codeload.github.com/LinuxSuRen/ks-ui-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247580812,"owners_count":20961665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T14:03:00.050Z","updated_at":"2026-01-20T07:05:46.337Z","avatar_url":"https://github.com/LinuxSuRen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://goreportcard.com/badge/linuxsuren/ks-ui-test)](https://goreportcard.com/report/linuxsuren/github-go)\n[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/linuxsuren/ks-ui-test)\n[![Contributors](https://img.shields.io/github/contributors/linuxsuren/ks-ui-test.svg)](https://github.com/linuxsuren/github-go/graphs/contributors)\n[![GitHub release](https://img.shields.io/github/release/linuxsuren/ks-ui-test.svg?label=release)](https://github.com/linuxsuren/github-go/releases/latest)\n![GitHub All Releases](https://img.shields.io/github/downloads/linuxsuren/ks-ui-test/total)\n\nThis is not the official UI test for [Kubesphere](https://github.com/kubesphere/kubesphere/). I created this only for someone \nwho might want to have less simple and meaningless work with developing Kubesphere.\n\n# Run it\n\nYou can run it a with normal browser via: `make build run`\n\nOr, you can also run it in a container with a headless browser: `make build image-run`\n\n# How it works\n\nThis project base on [phoenix.webui.framework](https://github.com/LinuxSuRen/phoenix.webui.framework) \nwhich is a UI testing framework of [Selenium](https://github.com/SeleniumHQ/selenium).\n\n# Run in container\n\n`docker run --rm registry.cn-beijing.aliyuncs.com/surenpi/ks-ui-test -url ${KS} -user ${KS_USER} -password ${KS_PASS}`\n\n# Run in Jenkins\n\nFirst, Start Jenkins via: `jcli center start`. Then config [jcli](https://github.com/jenkins-zh/jenkins-cli) if you've done it before.\n\nSecond, build the JNLP agent image via: `make jnlp-image`. \nThen run it: `jcli computer launch simple -m docker --remove --agent-type custom --custom-image surenpi/selenium-agent`\n\nAt last, create a pipeline with the following content:\n\n```\npipeline {\n    agent {\n\t\t    label 'simple'\n    }\n    environment {\n        KS = \"http://127.0.0.1:30880/login\"\n    }\n    stages {\n        stage('Example') {\n            steps {\n                withCredentials([usernamePassword(credentialsId: 'kubesphere', passwordVariable: 'PASS', usernameVariable: 'USER')]) {\n                    sh \"java -Djava.awt.headless=true -jar /test.jar -url ${KS} -password ${PASS} -username ${USER}\"\n                }\n            }\n        }\n    }\n}\n```\n\nIn order to make sure this pipeline works well, please remember provide a correct URL of Kubesphere and a credential.\n\nYou can trigger this pipeline via a command line: `jcli job build -b simple`. Or just trigger it manually.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fks-ui-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxsuren%2Fks-ui-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fks-ui-test/lists"}