{"id":20618025,"url":"https://github.com/applitools/testresultshandler-java","last_synced_at":"2025-04-15T11:36:54.028Z","repository":{"id":56668500,"uuid":"234905333","full_name":"applitools/TestResultsHandler-Java","owner":"applitools","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-06T23:20:14.000Z","size":26,"stargazers_count":3,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T19:38:00.031Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/applitools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-19T13:31:18.000Z","updated_at":"2024-11-18T07:43:33.000Z","dependencies_parsed_at":"2022-08-15T23:00:31.203Z","dependency_job_id":null,"html_url":"https://github.com/applitools/TestResultsHandler-Java","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/applitools%2FTestResultsHandler-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2FTestResultsHandler-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2FTestResultsHandler-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2FTestResultsHandler-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/applitools","download_url":"https://codeload.github.com/applitools/TestResultsHandler-Java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249061713,"owners_count":21206546,"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-16T12:06:51.605Z","updated_at":"2025-04-15T11:36:53.997Z","avatar_url":"https://github.com/applitools.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ApplitoolsTestResultsHandler - Java\n### v2.0.3\n\nThe Applitools Test Results Handler extends the capabilities of TestResults with additional API calls.\nWith these additional API calls you will be able to retrive additional details at the end of the test.\n\nNote: The Test Results Handler requires your account View Key - which can be found in the admin panel. Contact Applitools support at support@applitools.com if you need further assistance retrieving it.\n\n## The images that can be downloaded are:\n\n- The test baseline image - Unless specified, the images will be downloaded to the working directory.\n\n- The actual images - Unless specified, the images will be downloaded to the working directory.\n\n- The images with the differences highlighted - Unless specified, the images will be downloaded to the working directory.\n\n- Get the status of each step [Missing, Unresolved, Passed, New]\n\n### How to use the tool:\n\n#### Note: The following dependency needs to be added to your pom.xml file: \n\n```Java\n\u003cdependency\u003e\n \u003cgroupId\u003eorg.json\u003c/groupId\u003e\n \u003cartifactId\u003eorg.json\u003c/artifactId\u003e\n \u003cversion\u003eRELEASE\u003c/version\u003e\n\u003c/dependency\u003e \n```\n\n##### To initialize the Handler:\n```Java\nTestResults testResult= eyes.close(false);\nApplitoolsTestResultsHandler testResultHandler= new ApplitoolsTestResultsHandler(testResult,viewKey);\n\n//Proxy Configuration\nTestResults testResult= eyes.close(false);\nApplitoolsTestResultsHandler testResultHandler= new ApplitoolsTestResultsHandler(testResult, viewKey, proxyServer, proxyPort);\n\n//Proxy Configuration with Username and Password\nTestResults testResult= eyes.close(false);\nApplitoolsTestResultsHandler testResultHandler= new ApplitoolsTestResultsHandler(testResult, viewKey, proxyServer, proxyPort, proxyUser, proxyPassword);\n```\n\n##### **downloadDiffs** -  Downloading the test images with the highlighted detected differences to a given directory. In case of New, Missing or passed step no image will be downloaded.\n```Java\ntestResultHandler.downloadDiffs(Path_to_directory);\n```\n\n##### **downloadBaselineImages** -  Downloading the test baseline images to a given directory\n```Java\ntestResultHandler.downloadBaselineImages(Path_to_directory);\n```\n\n##### **downloadCurrentImages** - Downloading the test current image to a given directory.\n```Java\ntestResultHandler.downloadCurrentImages(Path_to_directory);\n```\n\n##### **downloadImages** - Downloading the test baseline image and current image to a given directory.\n```Java\ntestResultHandler.downloadImages(String Path_to_directory);\n```\n\n##### **downloadAnimatedGif** - Downloads a Gif of the Baseline Images, Current, and Diff images.\n```Java\ntestResultHandler.downloadAnimatedGif(String Path_to_directory);\n```\n\n##### **setPathPrefix** -  Setting this path prefix will determine the structure of the repository for the download images\n```Java\ntestResultHandler.setPathPrefixStructure(\"TestName/AppName/Viewport/hostingOS/hostingApp\");\n```\n\n##### In addition to downloading the images of the test, TestResultHandler also gives access through code to the visually comparison result per step. It returns an array of elements called RESULT_STATUS which can be one of the following four options: PASS, UNRESOLVED, NEW or MISSING\n```Java\nRESULT_STATUS[] stepsResultsArray = testResultHandler.calculateStepResults();\n```\n\n\n# Further regarding:\n\nGetting Diff Images Manually - http://support.applitools.com/customer/portal/articles/2457891 \nGetting Current/Baseline Images Manually - http://support.applitools.com/customer/portal/articles/2917372\nExtend API features with EyesUtilities - http://support.applitools.com/customer/portal/articles/2913152","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplitools%2Ftestresultshandler-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplitools%2Ftestresultshandler-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplitools%2Ftestresultshandler-java/lists"}