[PYTHON] Test automation for work

Isn't this what everyone wants after all?

You're not looking for technology that works for your job! So read the article seriously! I think

Motivation to automate

Where do you automate! ?? ↓ It's hard to be alone because there is a huge amount of testing. I want to do something by the deadline And when you are in a situation where you endlessly repeat similar tests that you get tired of once

Why you find automation attractive

I expect that if you have a personal computer, you can test as if you were your own alter ego.

plan

--First of all, work ingenuity (shortening) → Automation will be faster --Here, if it is within the sufficient range, automation is not necessary. ――This time, I can't make it by myself, so I want to make my own alter ego --Automate

Automation ideas

Capture capture

6step.py


# ALT + PRINTSCREEN
# ↓
#Windows key+ PRINTSCREEN

--Get a capture with a command --Open paint software --Paste the capture --Specify a save location to save as an image --Save the image

1step.py


#Windows key+ PRINTSCREEN

Implementation example.py


#Take a screenshot
def screenshot():
    keyDown(Key.WIN)
    keyDown(Key.PRINTSCREEN)
    keyUp()

#main
screenshot()

How to send alt+printscreen command from sikuli? https://answers.launchpad.net/sikuli/+question/208921 Key Constants https://sikulix-2014.readthedocs.io/en/latest/keys.html keyDown https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.keyDown

Will be updated later

Recommended Posts

Test automation for work
(Test automation) Nesting images used for image recognition
Create an environment for test automation with AirtestIDE (Tips)
Hypothesis test for product improvement
For the G test 2020 # 2 exam
Test code for evaluating decorators
Python template for Codeforces-manual test-
test
Test methods for customizing Pickle behavior
Created AtCoder test tool for Python
Make your COBOL development environment comfortable 3 --Recommendation for automation of auxiliary work-
Python visualization tool for data analysis work
Test method for size difference between groups
Test automation starting with L-Chika (3) Oscilloscope integration