Here is a Python script that will export out test cases in a folder from Quality Center into a CSV file.
The following script will not handle Attachments. Will work on that later when I have time.
Tue 10 May 2011
Here is a Python script that will export out test cases in a folder from Quality Center into a CSV file.
The following script will not handle Attachments. Will work on that later when I have time.
Tue 15 January 2008
1
Wed 26 December 2007
1
Thu 13 December 2007
Never store passwords as clear text, that is the general rule with any application that has a database backend that is used for authentication into the system. Why?
Basic authentication with a database usually works by comparing username and password combination that the user entered to values in the database table containing user details such as login name, password etc...It might be possible for a user with correct credentials to be able to inject SQL queries to the application, something like;
SELECT * FROM USERS;
assuming the user can guess or knows the table containing user data.
If passwords are in clear text then lo and behold the users now has access to all other users login name and passwords. Anyway this post is not about security of database backed applications but a post about how i overcame different versions of Python and py-bcrypt's support.
As i've posted before i've
been working at a web development company as a Python programmer. It's a Zope 'shop' in the sense that there main application, developed in house a shopping cart system is developed using Zope. Anyway i just developed 'External Scripts' to do specialized stuff for customers. But recently i've been working on a 'time/job tracking' web application using web.py. I've mentioned this in a previous post. So here is the versions of Python,web.py and py-bcrypt that i used to develop the tracker;
color="#ffffff">'r' )
35 except (OSError, IOError):
36 raise Exception("/dev/urandom (or equivalent) not found")
37 bytes = ""
38
39 while len(bytes) < n:
40 bytes += _urandomfd.read(n-len(bytes))
41 #bytes += read(_urandomfd, n - len(bytes))
42
43 _urandomfd.close()
44 return bytes
45
46 import os
47 os.urandom = urandom
48 from _bcrypt import
Now py-bcrypt works and passwords are hashable.
The thing that troubles me and is a question on my mind, is it worth the risk to install Python >= 2.4 on
a server that contains 'live shops' ? The risk being totally blowing up the default Python installation (2.3) and bringing down the shops ? I would have probably installed a new version of Python and sandboxed it. The irony is that the senior developer was the one who chose py-crypt and told me to come up with a decorator for methods which need to be password protected. I would have thought that with his experience he would have guessed that the request for the app to go online would have come. Also if you are scared to blow the default installation of Python on the production server, WHY PUT AN IN HOUSE APPLICATION THERE?
python
Sun 04 November 2007
1