Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
Thank you.
Indeed I did a search but couldn't find a right approach.

Jython! Yes.. It supports to call jar file.

As you said... Application support team has to modify few things on
application side where object creation should be public rather protected

On 31 Jan 2018 7:12 am, "Steven D'Aprano" <
steve+comp.lang.pyt...@pearwood.info> wrote:

> On Tue, 30 Jan 2018 16:00:43 +0530, Prahallad Achar wrote:
>
> > Luckily application supports headless automation now question is how to
> > invoke those jar using python.
>
> I can see two approaches:
>
> (1) Calling the jar directly from Python.
>
> I don't think you can do that from CPython, but you might be able to do
> it from Jython. (Jython is Python implemented in Java, and is designed to
> allow Java and Python code to call each other). Or there might be some
> third-party library that runs under CPython which allows you to do so.
>
>
> (2) Call the jar as an external process, in whatever way you would call a
> jar from an external application.
>
> Have you tried googling?
>
> https://duckduckgo.com/html/?q=call%20a%20jar%20from%20python
>
>
> (I think this is the limit of any help I can give -- I know nothing about
> jars except that they are some sort of Java code.)
>
>
>
> --
> Steve
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-30 Thread Steven D'Aprano
On Tue, 30 Jan 2018 16:00:43 +0530, Prahallad Achar wrote:

> Luckily application supports headless automation now question is how to
> invoke those jar using python.

I can see two approaches:

(1) Calling the jar directly from Python.

I don't think you can do that from CPython, but you might be able to do 
it from Jython. (Jython is Python implemented in Java, and is designed to 
allow Java and Python code to call each other). Or there might be some 
third-party library that runs under CPython which allows you to do so.


(2) Call the jar as an external process, in whatever way you would call a 
jar from an external application.

Have you tried googling?

https://duckduckgo.com/html/?q=call%20a%20jar%20from%20python


(I think this is the limit of any help I can give -- I know nothing about 
jars except that they are some sort of Java code.)



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-30 Thread Prahallad Achar
Luckily application supports headless automation now question is how to
> invoke those jar using python.

On 29 Jan 2018 10:45 pm, "Prahallad Achar"  wrote:

Thanks for the kind response.
Sure.. Definitely I shall ask development team for the same.

Regards
Prahallad

On 29 Jan 2018 7:48 pm, "Steven D'Aprano"  wrote:

> On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote:
>
> > No.. Not at all.
> >
> > Its CTP application.. Which is basically transport planner for networks
>
> If you want to know whether CTP can be run headless, you should ask the
> CTP support team or software maintainer, not Python forums.
>
> Do you have a support contract for this software? You could ask the help
> desk.
>
>
> --
> Steve
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Thanks for the kind response.
Sure.. Definitely I shall ask development team for the same.

Regards
Prahallad

On 29 Jan 2018 7:48 pm, "Steven D'Aprano" <
steve+comp.lang.pyt...@pearwood.info> wrote:

> On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote:
>
> > No.. Not at all.
> >
> > Its CTP application.. Which is basically transport planner for networks
>
> If you want to know whether CTP can be run headless, you should ask the
> CTP support team or software maintainer, not Python forums.
>
> Do you have a support contract for this software? You could ask the help
> desk.
>
>
> --
> Steve
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote:

> No.. Not at all.
> 
> Its CTP application.. Which is basically transport planner for networks

If you want to know whether CTP can be run headless, you should ask the 
CTP support team or software maintainer, not Python forums.

Do you have a support contract for this software? You could ask the help 
desk.


-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
No.. Not at all.

Its CTP application.. Which is basically transport planner for networks

On 29 Jan 2018 5:38 pm, "Steven D'Aprano" <
steve+comp.lang.pyt...@pearwood.info> wrote:

> On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote:
>
> > Hello friends,
> >
> > There is an desktop application which runs on Windows and written in
> > java
> [...]
> > Is there a way to run this automation without launching the application
> > (headless)
>
> Is the name of the application a secret?
>
>
>
> --
> Steve
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote:

> Hello friends,
> 
> There is an desktop application which runs on Windows and written in
> java
[...]
> Is there a way to run this automation without launching the application
> (headless)

Is the name of the application a secret?



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list


Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Hello friends,

There is an desktop application which runs on Windows and written in java

There is a requirement to automate that application.

Am trying with pyautogui but it is very slow and lengthy code to compete.

Is there a way to run this automation without launching the application
(headless)

Plz help me
-- 
https://mail.python.org/mailman/listinfo/python-list