Project Judas

124 views
Skip to first unread message

Mikko Korpela

unread,
Jul 20, 2015, 8:47:52 AM7/20/15
to robotframe...@googlegroups.com
Hello all,

I've been wanting to spend some time on experimenting with an old idea for a long long time. 
That is to find out if the core value for the end users of Robot Framework comes from its syntax (and the work model it enforces) or from logs, tags and (a little bit also from) listeners. I think the best way to solve this is to build a new tool without the syntax.

Today I've created the first draft of a new tool that enables people to write tests with python. If you are interested in participating in this project, it is located in https://github.com/mkorpela/judas
The tool is not at all ready, but you already can run tests with it. It is heavily dependent on the internals of Robot Framework and I've developed it (today) against RF 2.9rc1 - thus it most likely will not work without that RF version.

Syntax looks like this:

my_judas_tests.py:

from judas import kw, test

@test
def hello_judas():
   hello()

@kw
def hello():
   print 'hello world!'


and currently it is started like:

python judas.py my_judas_tests

Cheers,
Mikko Korpela

Gu Ru

unread,
Jul 20, 2015, 11:27:40 AM7/20/15
to robotframe...@googlegroups.com
Thank you, I will try it out in coming days

So just to confirm my understanding,  the idea is,  test case(s) with test step(s), therefore is, a python file, right ?

Tatu Aalto

unread,
Jul 20, 2015, 12:07:43 PM7/20/15
to robotframework-users
Ugh

Looks cool. I personally love both (work model and the logs). To get better understanding, would need to give it a try, but that have to wait until my holidays are over. 

-Tatu

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

Mikko Korpela

unread,
Jul 20, 2015, 12:45:20 PM7/20/15
to r.r.s...@gmail.com, robotframe...@googlegroups.com
So just to confirm my understanding,  the idea is,  test case(s) with test step(s), therefore is, a python file, right ?

Yes.

-- 
Mikko Korpela
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/KDsJt0r9iCY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-u...@googlegroups.com.

Pekka Klärck

unread,
Jul 21, 2015, 9:21:40 AM7/21/15
to Mikko Korpela, robotframework-users
2015-07-20 15:47 GMT+03:00 Mikko Korpela <mikko....@gmail.com>:
>
> Today I've created the first draft of a new tool that enables people to
> write tests with python.

Awesome! Once it matures, we can consider including it with Robot
Framework itself.

> Syntax looks like this:
>
> my_judas_tests.py:
>
> from judas import kw, test
>
> @test
> def hello_judas():
> hello()
>
> @kw
> def hello():
> print 'hello world!'

Have you considered could you use the new `robot.api.deco.keyword`
instead of a custom decorator? It sets `robot_name` attribute that you
could use to detect should a method be considered a keyword. It also
makes it possible to create custom keyword names that are not
restricted to characters allowed in method names.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Mikko Korpela

unread,
Jul 23, 2015, 12:58:22 AM7/23/15
to Pekka Klärck, robotframework-users
Awesome! Once it matures, we can consider including it with Robot
Framework itself.

Thanks Peke. Let's see what happens :)

Have you considered could you use the new `robot.api.deco.keyword`
instead of a custom decorator?

kw decorator works at test execution time and adds things to the output.xml. keyword decorator works at test/library parsing time (i think). I'll see what I can do.

Br,
-- 
Mikko Korpela

Mikko Korpela

unread,
Jul 29, 2015, 10:06:43 AM7/29/15
to robotframework-users, pe...@iki.fi, mikko....@gmail.com
Still I'm missing a proper name for the project - a thing that I need before PyPi release. Any good ideas?

It now supports also tags, so first release might be ready before you know it.

Marino Punturieri

unread,
Jul 29, 2015, 10:56:09 AM7/29/15
to Mikko Korpela, robotframework-users, Pekka Klärck
Pyrobot is already used, maybe pyrf.
Just my 2 cents.
> --
> 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

Gu Ru

unread,
Jul 29, 2015, 11:27:42 AM7/29/15
to robotframework-users, mikko....@gmail.com, pe...@iki.fi, map...@gmail.com
to add on the same line as above post, py2rf or a completely different name, e.g rf-sage : ))

Mikko Korpela

unread,
Jul 29, 2015, 12:11:27 PM7/29/15
to Marino Punturieri, robotframework-users, Pekka Klärck
pyRF is also already something..

I don't actually get it why python packages have py at the beginning - it is already known that the packages are python so why have that in the name.

Maybe barf :D

--
Mikko Korpela

Tatu Aalto

unread,
Jul 29, 2015, 12:49:34 PM7/29/15
to Mikko Korpela, Pekka Klärck, map punt, robotframework-users

Ugh

What about acronym from original: jurf,

-Tatu
Send from my mobile

Mukesh Takhtani

unread,
Jul 29, 2015, 2:43:44 PM7/29/15
to mikko....@gmail.com, robotframework-users, Pekka Klärck, Marino Punturieri

My suggestions for name:

1. RFUnit
2. VeriPy (from Verify : to test/check)

Best,
Mukesh

Antti Salo

unread,
Jul 30, 2015, 2:41:48 AM7/30/15
to robotframework-users, mikko....@gmail.com, pe...@iki.fi, map...@gmail.com, takh...@gmail.com
Hi,

How about:
RFpy or RobPy


Br,
Antti

Mikko Korpela

unread,
Jul 30, 2015, 6:59:29 AM7/30/15
to robotframework-users, pe...@iki.fi, map...@gmail.com, takh...@gmail.com, sal...@gmail.com
Thanks to everyone for great name suggestions!

I decided to go with RobPy :D

VeriPy was also one of my favorites but it was already something else.

Mikko Korpela

unread,
Jul 30, 2015, 7:03:12 AM7/30/15
to robotframework-users, pe...@iki.fi, map...@gmail.com, takh...@gmail.com, sal...@gmail.com, mikko....@gmail.com
The first draft release (0.1) can now be downloaded from PyPi

pip install robpy

It currently requires latest RF 2.9 (release candidate).

You can already play around with the first version but I wouldn't use it for production yet.

Github repository is now located in https://github.com/mkorpela/robpy

All contributions are welcome!

Cheers,
Mikko Korpela

Sergiy Tsymbal

unread,
Jul 31, 2015, 6:49:10 AM7/31/15
to robotframework-users, pe...@iki.fi, map...@gmail.com, takh...@gmail.com, sal...@gmail.com, mikko....@gmail.com
It would be great to get integration with RIDE
Reply all
Reply to author
Forward
0 new messages