How to read the data from the notepad in robotframework?

1,281 views
Skip to first unread message

sakthivel sundar

unread,
Oct 13, 2014, 7:08:44 AM10/13/14
to robotframe...@googlegroups.com
Hi ,

Can any one help me to read the data from the notepad using robotframework.?
Thanks In 

Bryan Oakley

unread,
Oct 13, 2014, 7:19:40 AM10/13/14
to robotframework-users
You could try using the autoit library to select all the text, copy it to the clipboard, then use the Clip Get command to get the text. My team has successfully done this with outlook, I'm guessing the same technique might work with notepad.


--
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-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

sakthivel sundar

unread,
Oct 13, 2014, 8:53:21 AM10/13/14
to robotframe...@googlegroups.com
Hi Bryan,

Thanks for ur very quick response.  I can understand ur logic and i have tried this before using java but dont know how to do it in robotframwork. Can you plz share me the code for this.

Regards,
Sakthy.


On Monday, 13 October 2014 16:49:40 UTC+5:30, Bryan Oakley wrote:
You could try using the autoit library to select all the text, copy it to the clipboard, then use the Clip Get command to get the text. My team has successfully done this with outlook, I'm guessing the same technique might work with notepad.

On Mon, Oct 13, 2014 at 6:08 AM, sakthivel sundar <sakthi...@gmail.com> wrote:
Hi ,

Can any one help me to read the data from the notepad using robotframework.?
Thanks In 

--
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.

Uri Shatalov

unread,
Oct 14, 2014, 2:38:19 AM10/14/14
to robotframe...@googlegroups.com
just wondering if you tried using simplest solution like:

OperatingSystem.Get File or maybe

OperatingSystem.Grep File

Ss Raghavan

unread,
Oct 14, 2014, 11:59:32 AM10/14/14
to robotframe...@googlegroups.com
Any specific purpose why you wanted to read something from open notepad, when you can do fille read operations which is quite simpler and easier. Is there any specifici thing that you are doing?

Christian Rudolf Tan

unread,
Oct 14, 2014, 10:59:02 PM10/14/14
to robotframe...@googlegroups.com
Hi to all. is this also possible like robot getting data form an excel file (database)? (wondering) :-D

sakthivel sundar

unread,
Oct 15, 2014, 3:06:50 AM10/15/14
to robotframe...@googlegroups.com
Hey Shatalov,

Can you plz share me the code for this.

Regards,
Sakthy

sakthivel sundar

unread,
Oct 15, 2014, 3:08:52 AM10/15/14
to robotframe...@googlegroups.com
Hi Raghavan,

Thanks for the reply Raghav. I want to use it for ETl testing.Will be getting data in the form of notepad as a flat file i want to read that file and execute in the DB.

Regards,
Sakthy

Bryan Oakley

unread,
Oct 15, 2014, 6:41:36 AM10/15/14
to sakthi...@gmail.com, robotframework-users
If you've got a flat file there's no reason to read it from notepad. Just use the "Get File" keyword from the operating system  library. http://robotframework.org/robotframework/latest/libraries/OperatingSystem.html#Get%20File



--
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-u...@googlegroups.com.

Tatu Aalto

unread,
Oct 15, 2014, 1:57:20 PM10/15/14
to tan.chr...@gmail.com, robotframe...@googlegroups.com
Ugh

This is a topic it's own but generally speaking yes it is possible.

There are at least three database libraries available, that I know of and have used and many more that I have not used [1]. There is also libraries for for excel files [2], but those I have not used.
[1] http://robotframework.org/#test-libraries
[2] http://navinet.github.io/robotframework-excellibrary/
--
Reply all
Reply to author
Forward
0 new messages