Create New test suite failed to load available test cases

18 views
Skip to first unread message

Cathy Dai

unread,
Nov 8, 2013, 3:37:44 AM11/8/13
to moz...@googlegroups.com
Hi Cam,

I recently migrate DB from old moztrap server (branch 1.4.7) to a new moztrap server (master branch). After mysql backup and restore, I run ./manage.py syncdb --migrate. Everything works fine except for two places.

1. Create new test suite
Cannot load available test cases so that creating test suite is blocked

2. Edit an existing test suite
Blocked, cannot load available cases either

3. Edit an existing tag
Blocked, cannot load available caseversions

Any clue or workaround?

Thanks,
Cathy


Cathy Dai

unread,
Nov 8, 2013, 3:51:55 AM11/8/13
to moz...@googlegroups.com
By the way, I use Chrome, Firefox, and IE on Windows 7 and all have the issue. -Cathy

Cathy Dai

unread,
Nov 8, 2013, 4:29:45 AM11/8/13
to moz...@googlegroups.com
And the issue should be not related to database migration. I just drop database moztrap and create a new one. The same issue applies. - Cathy

Cameron Dawson

unread,
Nov 12, 2013, 12:27:23 PM11/12/13
to moz...@googlegroups.com
Hi Cathy-- Sorry for the trouble.  Would you be able to install the Firefox "Firebug" add-on?  If you activate it and then reload this page, it may give us a clue.  The call to populate the "available cases" list is an ajax call.  Clearly that call is failing. Firebug may give us better info on why that's failing.

Thanks,
-Cam

Cathy Dai

unread,
Nov 18, 2013, 9:40:50 PM11/18/13
to moz...@googlegroups.com
Hi Cam,

I've got the root cause of the issue and it's because the api ajax call is directing to /api/... while moztrap is under sub-url of apache. I made it work by updating init.js for all ajax call to /api to /<sub-url>/api and then it works. Not sure if there is better solution like changing configuration other than the js file.

Thanks,
Cathy

Nicholas Korn

unread,
Nov 19, 2013, 3:36:14 PM11/19/13
to moz...@googlegroups.com
Hi Cathy - can you provide more details about the change you made to fix this issue? I'm also running into it and would like to upgrade to the latest release branch.

I get this error on the Firebug console:

TypeError: URI.addQuery() accepts an object, string as the name parameter
Line 986

Thanks,
Nick

Qingyun Dai

unread,
Nov 19, 2013, 9:41:00 PM11/19/13
to moz...@googlegroups.com
Hi Nicholas,

You need to update the javascript source code init.js and make the ajax url like "/api/...." to "/<sub-url>/api/....". There are four such places to update.

Thanks,
Qingyun


--
You received this message because you are subscribed to a topic in the Google Groups "MozTrap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moztrap/n1i_FyGplTU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moztrap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages