Ugh
I do not remember anyone asking about this kind of question and I do not know where you could obtain such information. Of course this information is somewhere in the robot framework, but perhaps someone from the dev team knows the answer.
But in meanwhile, could you explain why you need this information and what is your goal? Perhaps we can think better ways or workaround to reach your goal.
-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-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.
Hi all,Is there anyway to get this info using the public RF api? Note I'd actually like to be able to see all libraries that exist within a particular scope (test case, test suite etc).
from __future__ import print_functionfrom robot.parsing import TestDataimport sysdef printLibraries(suite, indent=0):print(" "*indent + suite.name)for lib in suite.setting_table.imports:print(" "*indent + "-", lib.name)for child_suite in suite.children:printLibraries(child_suite, indent=indent+2)suite = TestData(parent=None, source=sys.argv[1])printLibraries(suite)
Ugh
Bryan's solution to your problem is a great one and
most likely I will take it in use also (in one form or other). But
it should not be the only solution in your arsenal. In our
company, use normal development practice's to minimise these kind
of issues for test automation.
* Test automation is done in sprints, including all normal sprint
activities.
* There is product owner(s)/architect(s), for test automation, who
has final word over test automation (test cases, resource files,
libraries, libraries dependencies and so on).
* All test automation is reviewed, a.k. code review. And yes,
owner of that part of test automation must participate on all
reviews.
* All in-house build libraries have acceptance or/and unit test.
* And I am thinking that pair programming type of activity would
serve us also well.
In my mind test automation is coding in so many ways,
that many development activities/practices can be applied to it.
And like in many development challenges, it is all about
communication. Communication, which libraries are available, which
dependencies libraries will use. Organizing that all is in logical
place, things have logical names and name is based on the domain
specific language. And so on, list is almost endless.
Although this tool wont solve this problem, it's always
good reminder: rf-hub [1]. It is great tool to see and search all
your keywords and thanks to Bryan from this tool too.