{"id":20932396,"url":"https://github.com/testingbot/testng-example","last_synced_at":"2025-03-13T02:18:26.380Z","repository":{"id":141992156,"uuid":"58480462","full_name":"testingbot/testng-example","owner":"testingbot","description":"Example on how to run a TestNG test with TestingBot","archived":false,"fork":false,"pushed_at":"2016-05-10T17:25:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T19:16:57.663Z","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/testingbot.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-10T17:23:21.000Z","updated_at":"2023-06-23T11:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7650492-6800-4841-837c-e6b960f500aa","html_url":"https://github.com/testingbot/testng-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestng-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestng-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestng-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Ftestng-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testingbot","download_url":"https://codeload.github.com/testingbot/testng-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324504,"owners_count":20273113,"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-11-18T21:48:28.339Z","updated_at":"2025-03-13T02:18:26.358Z","avatar_url":"https://github.com/testingbot.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"TestingBot TestNG Example\n============\n\nWhat this example contains\n-------------------------\n\n This example contains a TestNG test file with 1 test: `testSimple`.\n The test will start a real browser on TestingBot.com and will instruct that browser to navigate to https://testingbot.com where it will verify if the H1 is correct.\n\n Once the test completes, the included `TestingBotTestListener` will send the test success state and testname back to TestingBot, via the TestingBot REST API.\n\n With this example you will be able to run a TestNG test via TestingBot and see its meta-data on TestingBot.com\n\n\nRunning the Test\n----------------------\n\n Before you can run the test, please adjust the `getTestingBotKey` and `getTestingBotSecret` values in the TestingBotTest example to use your own key and secret, which you can get for\n free from [https://testingbot.com/](https://testingbot.com/)\n\n Once you've added your own key and secret to authenticate to our grid, use NetBeans or Eclipse to run the TestNG test.\n\n\nTestingBotTestListener\n----------------------\n\n In order for TestingBot.com to be able to show the test success state and test name, it will need to receive this data via the TestingBot REST API.\n We've made a `TestingBotTestListener.java` class in this example that interacts with TestNG to send this meta-data when the tests finish running.\n\n To include this listener with your own test classes, please use:\n\n```java\n@Listeners({TestingBotTestListener.class})\npublic class TestingBotTest implements TestingBotSessionIdProvider, TestingBotAuthenticationProvider {\n```\n\nMore info\n-----------\n\n More information is available on our support pages: \n\n[https://testingbot.com/support/getting-started/java.html](https://testingbot.com/support/getting-started/java.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestng-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestingbot%2Ftestng-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Ftestng-example/lists"}