how to use library `Process`.

666 views
Skip to first unread message

din...@139.com

unread,
Aug 21, 2016, 11:16:27 PM8/21/16
to robotframework-users
hi all:
        How to use the Process library?How to give the arguments of handle?,

Run the following code:

                          ${ID}     Get Process Id     python

 I get the following error:
20160822 11:09:11.639 :  FAIL : Non-existing index or alias 'python'.

Tatu Aalto

unread,
Aug 22, 2016, 1:00:39 AM8/22/16
to din...@139.com, robotframework-users

Ugh

Have you looked at the example in the library: http://robotframework.org/robotframework/latest/libraries/Process.html#Example

We might be able to help you better if you would tell what you are trying to achieve?

-Tatu
Send from my mobile


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Tatu Aalto

unread,
Aug 22, 2016, 1:02:30 AM8/22/16
to din...@139.com, robotframework-users

Ugh

Sorry for the spam, did post a wrong link: 
http://robotframework.org/robotframework/latest/libraries/Process.html#Switch%20Process

-Tatu
Send from my mobile

On 22 Aug 2016 8:00 a.m., "Tatu Aalto" <aalto...@gmail.com> wrote:

Ugh

Have you looked at the example in the library: http://robotframework.org/robotframework/latest/libraries/Process.html#Example

We might be able to help you better if you would tell what you are trying to achieve?

-Tatu
Send from my mobile

On 22 Aug 2016 6:16 a.m., <din...@139.com> wrote:
hi all:
        How to use the Process library?How to give the arguments of handle?,

Run the following code:

                          ${ID}     Get Process Id     python

 I get the following error:
20160822 11:09:11.639 :  FAIL : Non-existing index or alias 'python'.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

din...@139.com

unread,
Aug 22, 2016, 1:25:26 AM8/22/16
to robotframework-users, din...@139.com
I have seen these documents.    http://robotframework.org/robotframework/latest/libraries/Process.html
I want to get the all of the process ID in the Win7 operating system.



在 2016年8月22日星期一 UTC+8下午1:02:30,Tatu Aalto写道:

Ugh

Sorry for the spam, did post a wrong link: 
http://robotframework.org/robotframework/latest/libraries/Process.html#Switch%20Process

-Tatu
Send from my mobile

On 22 Aug 2016 8:00 a.m., "Tatu Aalto" <aalto...@gmail.com> wrote:

Ugh

Have you looked at the example in the library: http://robotframework.org/robotframework/latest/libraries/Process.html#Example

We might be able to help you better if you would tell what you are trying to achieve?

-Tatu
Send from my mobile

On 22 Aug 2016 6:16 a.m., <din...@139.com> wrote:
hi all:
        How to use the Process library?How to give the arguments of handle?,

Run the following code:

                          ${ID}     Get Process Id     python

 I get the following error:
20160822 11:09:11.639 :  FAIL : Non-existing index or alias 'python'.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

Tatu Aalto

unread,
Aug 22, 2016, 1:47:02 AM8/22/16
to din...@139.com, robotframework-users

Ugh

The Process library is only able to track process which are started by the library. If you want to to do something with a process which are started by other means, I would look to the psutil[1] direction, or by using windows TaskList (with Process library) command and filtering/parsing the result

-Tatu
Send from my mobile

[1] https://github.com/giampaolo/psutil


To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

din...@139.com

unread,
Aug 22, 2016, 2:03:31 AM8/22/16
to robotframework-users, din...@139.com
Thank you very much, I will adopt the way of filtering/parsing the result
Did you use Python subprocess ?

在 2016年8月22日星期一 UTC+8下午1:47:02,Tatu Aalto写道:
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Tatu Aalto

unread,
Aug 22, 2016, 2:35:47 AM8/22/16
to din...@139.com, robotframework-users

Ugh

The Process library is a wrapper on top of the Python subprocess and it's Popen constructor. I am using Process library for some things but sometimes also use the subprocess directly.

-Tatu
Send from my mobile

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages