Can Nitrate do this?
by Niv Gal Waizer
Here are a few points, we seek. Can nitrate provide these?
1. Customize column view
2. Tree view for a product , where first branches are the test plans,
then the next level are the test runs? so as to achieve the full product
state in one screen?
3. How to clone a test case? (I guess we need to explain what is missing
here)
4. How to add custom fields?
5. We need a new entity , we will call it cycle. It will group several
test runs from different test plans. Currently a test run can only use
the test cases from one test plan.
Do you have any plans on adding new features?
Regards,
Niv
10 years, 2 months
User guide
by Niv Gal Waizer
The user guide in the top right corner leads to the same URL I am at.
Its a bug.
10 years, 2 months
Create New Test Run - fails on TestCaseRunStatus matching query does not exist.
by Niv Gal Waizer
In Home >> ... >> 2: Test Design >> New Test Run
I click save and get this error.
Below is the mysql status.
Request Method: POST
Request URL: http://nivw-centos6-2/run/new/
Django Version: 1.5.5
Python Version: 2.6.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.comments',
'kobo.django.xmlrpc',
'tcms.apps.profiles',
'tcms.core',
'tcms.core.contrib.auth',
'tcms.core.contrib.comments',
'tcms.core.logs',
'tcms.apps.management',
'tcms.apps.testcases',
'tcms.apps.testplans',
'tcms.apps.testruns',
'tcms.apps.testreviews',
'tcms.core.lib.django-pagination.pagination',
'tcms.integration.djqpid',
'tcms.integration.apps.errata',
'tcms.core.contrib.linkreference',
'tcms.integration.apps.bugzilla')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'tcms.core.middleware.CsrfDisableMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'tcms.core.lib.django-pagination.pagination.middleware.PaginationMiddleware')
Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in
get_response
115. response = callback(request,
*callback_args, **callback_kwargs)
File
"/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py" in
_wrapped_view
25. return view_func(request, *args, **kwargs)
File
"/usr/lib/python2.6/site-packages/nitrate-3.8.6-py2.6.egg/tcms/apps/testruns/views.py"
in new
141. assignee=assignee_tester)
File
"/usr/lib/python2.6/site-packages/nitrate-3.8.6-py2.6.egg/tcms/apps/testruns/models.py"
in add_case_run
258. and TestCaseRunStatus.objects.get(id =
case_run_status) \
File "/usr/lib/python2.6/site-packages/django/db/models/manager.py" in get
143. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py" in get
404. self.model._meta.object_name)
Exception Type: DoesNotExist at /run/new/
Exception Value: TestCaseRunStatus matching query does not exist.
In mysql, I use nitrate database:
mysql> select * from test_case_run_status;
Empty set (0.00 sec)
10 years, 2 months
Installing nitrate stable on centos6
by Niv Gal Waizer
I am trying to Install the current version which is 3.8.5-5 according to
git. commit 15596e26d1204ef4c0b6a0e7e9712520bcf54c4f
I am using a fresh centos 6 install.
Here is what works so far:
# Install dependencies
* yum install python-django MySQL-python python-kerberos python-qpid w3m
python-lxml
* wget
ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates...
* rpm --replacepkgs --nodeps --nosignature -i kobo-0.3.6-1.fc15.noarch.rpm
* cp -ar /usr/lib/python2.7/site-packages/kobo/
/usr/lib/python2.6/site-packages/
* easy_install pip
* pip install django-xmlrpc django-uuslug
# Get nitrate
* yum install git rpmdevtools python-setuptools python-devel
* git clone git://git.fedorahosted.org/nitrate.git
* cd nitrate; git checkout 3.8.5-release
First bug here is:
# make
Getting latest codes from git
Initialized empty Git repository in /tmp/nitrate-3.8.5/nitrate/.git/
remote: Counting objects: 17180, done.
remote: Compressing objects: 100% (8182/8182), done.
remote: Total 17180 (delta 9297), reused 13961 (delta 7129)
Receiving objects: 100% (17180/17180), 17.02 MiB | 438 KiB/s, done.
Resolving deltas: 100% (9297/9297), done.
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
/bin/sh: line 0: cd: /tmp/nitrate-3.8.5/nitrate/trunk/: No such file or
directory
sed: can't read
/tmp/nitrate-3.8.5/nitrate/trunk//nitrate/templates/tcms_base.html: No
such file or directory
make: *** [nitrate-3.8.5.tar.bz2] Error 2
I find the file tcms_base.html in a different location so here is the patch:
--- Makefile 2014-02-18 18:08:21.000000000 +0200
+++ Makefile.orig 2014-02-18 18:00:17.000000000 +0200
@@ -13,7 +13,7 @@
RPMBUILD_OPTIONS=--nodeps --define "_sourcedir $(PWD)" --define
"_srcrpmdir $(PWD)"
WORK_DIR=/tmp/nitrate-$(VERSION)
-SOURCE_DIR = $(WORK_DIR)/nitrate/
+SOURCE_DIR = $(WORK_DIR)/nitrate/trunk/
# Target: build a local RPM
local-rpm: $(SRPM)
@@ -37,7 +37,7 @@
@cd $(WORK_DIR); git clone -b development
git://git.fedorahosted.org/nitrate.git
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
- @cd $(SOURCE_DIR); sed --in-place -r 's|NITRATE_VERSION|$(VERSION)|'
$(SOURCE_DIR)/tcms/templates/tcms_base.html
+ @cd $(SOURCE_DIR); sed --in-place -r 's|NITRATE_VERSION|$(VERSION)|'
$(SOURCE_DIR)/nitrate/templates/tcms_base.html
@cd $(SOURCE_DIR); mv nitrate nitrate-${VERSION}
@cd $(SOURCE_DIR); tar --bzip2 --exclude .git -cSpf $(TARBALL)
nitrate-${VERSION}
@cp $(SOURCE_DIR)/$(TARBALL) .
Second bug:
# make
Getting latest codes from git
Initialized empty Git repository in /tmp/nitrate-3.8.5/nitrate/.git/
remote: Counting objects: 17180, done.
remote: Compressing objects: 100% (8182/8182), done.
remote: Total 17180 (delta 9297), reused 13961 (delta 7129)
Receiving objects: 100% (17180/17180), 17.03 MiB | 752 KiB/s, done.
Resolving deltas: 100% (9297/9297), done.
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
mv: cannot stat `nitrate': No such file or directory
make: *** [nitrate-3.8.5.tar.bz2] Error 1
Thanks for any help,
Niv
10 years, 2 months
Re: AssertionError at /cases/
by Chenxiong Qi
Hi nivw,
I have tested Nitrate by following your reproduce steps, but not get
that error. Although 3.8.5-5 is the latest release version, it was
developed based on very old version of django 1.2.x. Could you please
try the latest development version? These code is based on a full
tested code base after 3.8.5-5, and in the meanwhile many bugs were
fixed. Please let us know any subsequent problems. Thanks!
Regards,
--
A Python developer living in Beijing
http://about.me/tkdchen
10 years, 2 months
AssertionError at /cases/
by Niv Gal Waizer
Version: 3.8.5-5 commit 15596e26d1204ef4c0b6a0e7e9712520bcf54c4f
1. In Create new case I first try to define a case with no priority.
-> I get an error, where I am told I must define a priority.
2. I open a new browser window and go to the Admin >>Management
administration/Priorities
3. I then click "Add priority" and add four values:
Value Sortkey
Critical 0
Blocker 1
Major 2
Minor 3
4. I then return to the test case window and click save
-> I get the missing priority error again
5. I now choose a priority and click save.
6. I change to the planning view.
7. I choose the test plan
8. I click the "Reviewing Cases"
I get this error:
/usr/lib/python2.6/site-packages/django/core/handlers/base.py in
get_response
for middleware_method in self._view_middleware:
response = middleware_method(request,
callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request,
*callback_args, **callback_kwargs)
...
except Exception, e:
# If the view raised an exception, run it
through exception
# middleware, and if the exception
middleware returns a
# response, use that. Otherwise, reraise
the exception.
for middleware_method in
self._exception_middleware:
response = middleware_method(request, e)
10 years, 2 months