{"id":15583388,"url":"https://github.com/kochetkov-ma/qa-tools","last_synced_at":"2026-04-04T16:32:00.493Z","repository":{"id":57742721,"uuid":"234580239","full_name":"kochetkov-ma/qa-tools","owner":"kochetkov-ma","description":"Different Tools for Auto Testing","archived":false,"fork":false,"pushed_at":"2020-08-24T18:20:55.000Z","size":81,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T08:28:25.676Z","etag":null,"topics":["actions","central","github","gradle","highlight","highlight-element","html","html-page","http-server","java11","selenium","utilities"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kochetkov-ma.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-01-17T15:45:23.000Z","updated_at":"2021-01-25T12:38:50.000Z","dependencies_parsed_at":"2022-09-09T11:21:17.343Z","dependency_job_id":null,"html_url":"https://github.com/kochetkov-ma/qa-tools","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kochetkov-ma/qa-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fqa-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fqa-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fqa-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fqa-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kochetkov-ma","download_url":"https://codeload.github.com/kochetkov-ma/qa-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kochetkov-ma%2Fqa-tools/sbom","scorecard":{"id":565453,"data":{"date":"2025-08-11","repo":{"name":"github.com/kochetkov-ma/qa-tools","commit":"df0b8c62f70aa694267d3dd332150904ed984a35"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/central.yml:1","Warn: no topLevel permission defined: .github/workflows/check.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":0,"reason":"dangerous workflow patterns detected","details":["Warn: script injection with untrusted input ' github.head_ref ': .github/workflows/release.yml:12"],"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/central.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/central.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/central.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/central.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/central.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/central.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/check.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/kochetkov-ma/qa-tools/release.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T14:52:00.195Z","repository_id":57742721,"created_at":"2025-08-20T14:52:00.195Z","updated_at":"2025-08-20T14:52:00.195Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31405703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["actions","central","github","gradle","highlight","highlight-element","html","html-page","http-server","java11","selenium","utilities"],"created_at":"2024-10-02T20:07:52.136Z","updated_at":"2026-04-04T16:32:00.465Z","avatar_url":"https://github.com/kochetkov-ma.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"QA Tools Java Library\n=================================\n[![Build / Make Release / Publish to OSS](https://github.com/kochetkov-ma/qa-tools/workflows/Build%20/%20Make%20Release%20/%20Publish%20to%20OSS/badge.svg?branch=master)](https://github.com/kochetkov-ma/qa-tools/actions?query=workflow%3A%22Build+%2F+Make+Release+%2F+Publish+to+OSS%22)  \n\n[![jdk11](https://camo.githubusercontent.com/f3886a668d85acf93f6fec0beadcbb40a5446014/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a646b2d31312d7265642e737667)](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)\n[![gradle](https://camo.githubusercontent.com/f7b6b0146f2ee4c36d3da9fa18d709301d91f811/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f746f6f6c2d677261646c652d626c75652e737667)](https://gradle.org/)\n[![junit](https://camo.githubusercontent.com/d2ba89c41121d7c6223c1ad926380235cf95ef82/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a756e69742d706c6174666f726d2d627269676874677265656e2e737667)](https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.13.md)  \n\n[![Coverage Status](https://coveralls.io/repos/github/kochetkov-ma/qa-tools/badge.svg)](https://coveralls.io/github/kochetkov-ma/qa-tools)  \n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/ru.iopump.qa/qa-tools/badge.svg)](https://maven-badges.herokuapp.com/maven-central/ru.iopump.qa/qa-tools)  \n \n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d6bb880cecb44f7db5f57c8ae54234b8)](https://app.codacy.com/manual/kochetkov-ma/qa-tools?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=kochetkov-ma/qa-tools\u0026utm_campaign=Badge_Grade_Dashboard)  \n\n[![checkstyle](https://img.shields.io/badge/checkstyle-google-blue)](https://github.com/checkstyle/checkstyle)\n[![pmd](https://img.shields.io/badge/pmd-passed-green)](https://github.com/pmd/pmd)\n[![spotbugs](https://img.shields.io/badge/spotbugs-passed-green)](https://github.com/spotbugs/spotbugs)\n\n## qa-tools\nDifferent simple tools for auto testing:\n- unit-testing\n- web ui\n- mobile ui\n- api\n- other\n\n## Getting\n```groovy\nimplementation 'ru.iopump.qa:qa-tools:0.2.0'\n```\n\n## Possibilities \n#### Selenium element highlighting\n`WebDriverEventListener` to highlight element with which one be interacting now (active element).\nUse static constructor.\n```java\n        final WebDriver sourceDriver = new ChromeDriver()\n        final EventFiringWebDriver driver = new EventFiringWebDriver(sourceDriver);\n        driver.register(HighlighterListener.newSingleThreadHighlighterListener());\n```\nAlso you can register this event handler in `com.codeborne.selenide` via `WebDriverRunner`\n#### Publishing html page for web testing and unit testing on localhost\nIf you want check you Page Object or you want provide simple html page on localhost in your unit (integration) tests\nyou can use this simplest and fastest single html page http server from JDK.\n```java\n        LocalSimpleHtmlServer server = LocalSimpleHtmlServer.of(8080, \"/\");\n        server.publish(\"\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003cbody\u003etest\u003c/body\u003e\u003c/html\u003e\");\n        server.close()      \n``` \nor in Junit as test rule\n```java\n        @Rule\n        public LocalSimpleHtmlServer.TestHtmlServer server = LocalSimpleHtmlServer.of(8080, \"/\")\n            .asTestRule(\"\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003cbody\u003etest\u003c/body\u003e\u003c/html\u003e\");      \n``` \n#### WithValue interface\nIf you have some class with any value field especially String type just implement `WithValue` interface.  \nAnd you will get very convenient method `ru.iopump.qa.support.api.WithValue.hasValue` (see javadoc).  \nThis smart small method can equals every types of values especially String type with ignore case, \nalso it execute smart cast objectValue or expectedValue to String if any of them is String type.    \n\n### Utilities\n#### ClassUtil\nProvide several JDK's methods with a null-safe behavior.\n#### EnumUtil\n- create your enum implemented `WithValue\u003cString\u003e`\n```java\n    @AllArgsConstructor\n    @Getter\n    private enum EnumTmp implements WithValue\u003cString\u003e {\n        ONE(\"one_value\"), TWO(\"two_value\"), THREE(\"three_value\");\n        private final String value;\n    }\n```\n- find enum constants by String value and don't worry about letter's case or get clear exception with very useful message\n ```java\nEnumTmp result = EnumUtil.getByValue(EnumTmp.class, \"ONE_VALUE\")\nassert result == EnumTmp.ONE\n```\n- you may change generic type to any other and use it\n- also you may find enum by its name\n```java\nEnumTmp result = EnumUtil.getByName(EnumTmp.class, \"two\")\nassert result == EnumTmp.TWO\n```\n#### FileUtil\n\n#### ReflectionUtil\n\n#### ResourceUtil\n\n#### Str\n\n#### StreamUtil\n\n#### VarUtil\nMerge environment and system variables.  \n```java\n        /* get */\n        Optional\u003cString\u003e envOrSysProp = VarUtil.get(\"OS\");\n        assertThat(envOrSysProp).isNotEmpty();\n        /* getOrDefault */\n        String envOrSysPropOrDefault = VarUtil.getOrDefault(\"NOT_EXISTS\", \"DEFAULT_VALUE\") // can be null\n        assertThat(VarUtil.getOfDefault(\"NOT_EXISTS\", \"DEFAULT_VALUE\")).isEqualTo(\"DEFAULT_VALUE\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkochetkov-ma%2Fqa-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkochetkov-ma%2Fqa-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkochetkov-ma%2Fqa-tools/lists"}