Skip to content

Conversation

@zahin178
Copy link
Contributor

@zahin178 zahin178 commented Aug 8, 2024

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made.
  • Version number has been updated.
  • Required modules have been added to respective "requirements*.txt" files.
  • Relevant Test Cases added to this description (below).
  • (Team) Label with affected action categories and semver status.

Overview

Created a Python file that will make the screenshot-taking process easier for the Geosoftware testers. Before this script, the tester had to

  • Manually measure the coordinates (left, top) and (right, bottom) with Windows Inspector and calculate the width and height.
  • Run the Take Partial Screenshot action with those coordinates to take the screenshot.
  • Identify the zeuz_download_folder to get the screenshot.
  • Format everything to update a JSON file.

Now all of these can be done with the script. Here are the example commands for running the script

python .\ZeuZ_Screenshot_Helper.py Tareq

python .\ZeuZ_Screenshot_Helper.py Tareq --path "E:\Automations Solutionz\GeoSoftware\auto_coord_finder\test.png"

As can be seen the program takes 2 parameters, name of the tester which is a positional argument and full path of the image with image name which is a optional arguement.

usage: ZeuZ_Screenshot_Helper.py [-h] [--path PATH] name

positional arguments:
  name         Enter the name of the tester

options:
  -h, --help   show this help message and exit
  --path PATH  The path to folder where the image will be saved. Example E:\Automations Solutionz\GeoSoftware\image1.png. Default is the Download folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants