Need to export test cases from Moztrap into csv format. Please help.

81 views
Skip to first unread message

Ankush Raghatate

unread,
Feb 4, 2016, 5:10:09 PM2/4/16
to MozTrap
Need to export test cases from Moztrap into csv format. Please help.

Rebecca Billings

unread,
Feb 4, 2016, 5:36:14 PM2/4/16
to moz...@googlegroups.com
I believe the only way to do it is by using this: https://github.com/mozilla/moztrap-connect/blob/master/get_suite_cases_simple.py

Before you do that, know that exporting to JSON is much easier as there is a cost in using CSV as many cases have 1-to-many steps/environments/tags, etc. 

The MozTrap API can easily export to JSON using something like this query:

https://moztrap.mozilla.org/api/v1/caseversion/?format=json&limit=20&productversion=132&environments__in=27664

You can change the ``limit=100`` to be whatever you want.  If you set limit=0, then it will retrieve all of them.

Hope that helps,
~Rebecca

:rbillings


On Thu, Feb 4, 2016 at 2:10 PM, Ankush Raghatate <ankus...@gmail.com> wrote:
Need to export test cases from Moztrap into csv format. Please help.

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



--
Rebecca Billings, C.Hom.
Homeopathic Wellness
Reply all
Reply to author
Forward
0 new messages