New RF library for generating random test data

703 views
Skip to first unread message

Guy Kisel

unread,
Feb 23, 2014, 4:25:57 AM2/23/14
to robotframe...@googlegroups.com
https://github.com/guykisel/robotframework-faker

All I've really done is taken the wonderful faker module and wrapped it for Robot Framework. Let me know what you think!

Muhammad Azam Alias

unread,
Mar 31, 2014, 5:08:14 AM3/31/14
to robotframe...@googlegroups.com
Hi,

Could you point me to the right direction to Keywords list / documentations for this library?

Thanks in advance

Jerry Schneider

unread,
Mar 31, 2014, 10:36:09 AM3/31/14
to robotframe...@googlegroups.com
easiest way, it appears, is to do a git clone of the repo and look in the doc directory.

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

-- 
Linux registered user #475536
Ubuntu registered user #28583

mr

unread,
Apr 4, 2014, 7:25:58 AM4/4/14
to robotframe...@googlegroups.com
Hi!
What is the best mechanism to add own fake providers working with faker library in RobotFramework?
Regards 

Guy Kisel

unread,
Apr 11, 2014, 8:58:43 PM4/11/14
to robotframe...@googlegroups.com
Generating documentation using libdoc is on my to-do list. For now, you can just use the documentation from faker itself.

Guy Kisel

unread,
Apr 11, 2014, 8:59:50 PM4/11/14
to robotframe...@googlegroups.com
I have not tested this myself, but it should be very similar to adding a custom provider to faker, except that you'd pass it to robotframework-faker instead.


    def __init__(self, locale=None, providers=None, seed=None):
        global _fake
        _fake = faker.Factory.create(locale, providers)
        if seed:
            _fake.seed(seed)

mr

unread,
May 28, 2014, 11:19:27 AM5/28/14
to robotframe...@googlegroups.com
How I can pass arguments to the robotframework-faker Library import:

* Library           FakerLibrary    de_DE  ---> works as expected
* Library           FakerLibrary    locale=de_DE   ---> works as expected
but with following I got errors:
* Library           FakerLibrary    seed=124  ---> Initializing test library 'FakerLibrary' with arguments [ seed=124 ] failed: AttributeError: Invalid configuration for faker locale "seed=124"
* Library           FakerLibrary    locale=de_DE    seed=124  --->  Test Library 'FakerLibrary' got positional argument after named arguments.
* Library           FakerLibrary    locale=de_DE    \    seed=124  --->  Test Library 'FakerLibrary' got positional argument after named arguments.
* Library           FakerLibrary    locale=de_DE    providers=None    seed=124 --->  Test Library 'FakerLibrary' got positional argument after named arguments.

???

Guy Kisel

unread,
Jun 3, 2014, 8:47:18 PM6/3/14
to robotframe...@googlegroups.com
That's strange, this should work. I'll look into it and get back to you. Thanks for reporting this.

Guy

Guy Kisel

unread,
Jun 4, 2014, 3:10:24 PM6/4/14
to robotframe...@googlegroups.com
I am unable to reproduce this issue. The import strings you provided below work just fine for me. Can you provide more information on your version of robotframework-faker and other installed libraries/tools? I've opened a ticket at https://github.com/guykisel/robotframework-faker/issues/4

Guy

On Wednesday, May 28, 2014 8:19:27 AM UTC-7, mr wrote:

Guy Kisel

unread,
Oct 8, 2014, 7:47:28 PM10/8/14
to robotframe...@googlegroups.com
This is very late, but I've put documentation online. https://guykisel.github.io/robotframework-faker/
Reply all
Reply to author
Forward
0 new messages