Python Forum
Handling Thick client applications using Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Thick client applications using Python
#1
I need some advices from Python experts for one of my automation requirement that I am planning to succeed using Python.

This requirement is for automating the infrastructure activities like (1) stopping the running components in Virtual Machine, (2) copying files / running SQLs / deploying new codes (3) starting Virtual Machine.

Following are my concerns with regards to this activity?

(a) Stopping some of the running components using Windows Thick-client applications. By using Python, what is the possible way to invoke a windows thick-client application, and do some actions like clicking specific button, reading text messages from specific field, handling alert messages?

(b) Until this time, files are manually copying from local to Virtual machine using WinSCP (Windows Secure Copy). This tool is used for the reason behind that some files are copying in ‘binary’ mode – where this feature is in-built within this tool.

Can we handle this tool using Python or any other way that we can copy the files from local to Virtual Machines in ‘binary’ mode?

I have some background on Selenium (using JAVA) and Shell scripting and started learning Python on these recent days. Your guidance for me will be highly helpful. I am not looking for code, instead advice on Python module or best possible way to handle Thick client applications and to do so actions within it.
Reply
#2

  1. Starting, stopping processes: psutil
    Starting, stopping, creating windows services: pywinservicemanager
    Gui automation: PyAutoGUI
    For alert messages you need a kind of handler. Maybe PyAutogui can do this also, but I have only once time used it for a very simple task (seeking a Button with a screenshot of the button and clicking it).
  2. paramiko and to abstract paramiko you can use scp.


Python 3 can handle binary data strings with encoding.
For Selenium is also a Python-Wrapper/Port available.

For example the LibVirtManager on Linux for KVM is using Python.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Handling Python Fatal Error richajain1785 6 872 Feb-12-2021, 04:58 PM
Last Post: nilamo
  Handling multi-input/output audio in python bor1904 4 932 Nov-04-2020, 08:25 AM
Last Post: CHLOVRL
  Python win32com.client: What are the syntax to open exe file & activate its window? JaneTan 0 860 Oct-14-2020, 09:09 AM
Last Post: JaneTan
  Python Requests package: Handling xml response soumyarani 1 642 Sep-14-2020, 11:41 AM
Last Post: buran
  Opening and closing Mac applications and files Nickd12 5 933 Sep-05-2020, 04:39 AM
Last Post: perfringo
  Handling Multiple USB ports in Python samalpramod 0 862 Aug-01-2020, 07:40 PM
Last Post: samalpramod
  Python sockets : Client sending to the server nico31780 0 815 May-17-2020, 07:56 PM
Last Post: nico31780
  Exception handling in regex using python ShruthiLS 1 776 May-04-2020, 08:12 AM
Last Post: anbu23
  Internationalization of applications ? JohnnyCoffee 1 623 Apr-17-2020, 09:39 PM
Last Post: Larz60+
  Python Logging and Handling phillyfa 2 1,288 Mar-20-2020, 05:13 PM
Last Post: phillyfa

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020