Re: Import "ID Prefix" for each test case?

20 views
Skip to first unread message

Cameron Dawson

unread,
Jan 25, 2013, 12:17:05 PM1/25/13
to moz...@googlegroups.com
Hi Martin,

That field didn't exist when the importer was written, so it hadn't been supported.  However, I just applied a patch to the 1.4 branch which should work to import this field.  1.4 will be released either today or Monday, so I'm sneaking this in at the last minute.  :)  

Please let me know if this works for you.

-Cam

--------------------------------------------

On Jan 24, 2013, at 11:45 AM, Martin Dahlborg <mdah...@voalte.com> wrote:

Hi,

I am importing data into MozTrap 1.3.7.

I would like to import the "ID Prefix" for each test case.
My json data below did not succeed.
Any insight (and/or documentation) :)

In the database the table is library_case and the field is "idprefix".
So I guessed the json would look like:

{
"cases": [
{
"created_by":"em...@domain.com",
"name":"Login - Open App",
"tags":["tag1"],
"suites":["ProductX"],
"idprefix":"PX",
"description":"RallyDev ID: TC6",

"steps": [
{
"expected":"Application starts. User is directed to Login Screen. ",
"instruction":"User presses app icon from iPhone home screen. ",
}
],
etc etc etc...

Thanks for all your help today,
Martin



Martin Dahlborg

unread,
Jan 25, 2013, 12:35:14 PM1/25/13
to moz...@googlegroups.com
That will work, thank you for throwing it in there in the last minute. :)

Follow-up:
What I will need now are instructions on how to upgrade from 1.3.7 to 1.4
We just installed 1.3.7

Best,
Martin Dahlborg

Martin Dahlborg

unread,
Jan 25, 2013, 12:36:18 PM1/25/13
to moz...@googlegroups.com
and will it be idprefix or id_prefix?

Cameron Dawson

unread,
Jan 25, 2013, 2:03:34 PM1/25/13
to moz...@googlegroups.com
Martin, it'll be "idprefix"

To upgrade to 1.4, you don't need to do anything but check out the "1.4" branch from github.  There were no schema or dependency package changes in it.  Just code changes.

So: "git checkout 1.4" will do it for you.

-Cam

--------------------------------------------

Martin Dahlborg

unread,
Jan 25, 2013, 2:08:41 PM1/25/13
to moz...@googlegroups.com
That was simple :)
Awesome. Looking forward to the announcement.
Martin
Reply all
Reply to author
Forward
0 new messages