Lean Startup, Software Testing and Python
 

Author Archives: Zhe

Why you should learn some JavaScript as a test developer

As a test developer, I love making tools, and I like to share my tools. It is always great to hear about how cool your tools are or how much their lives have been made easier. Most of my tools are written in Python. Simply because it is quick to prototype and there are lots of libraries around Internet.  But it has changed a bit after I started writing more JavaScript code in my current assignment. There are lots of [...]

Setup Postgresql, Python2.7 and Django using virtualenv on CentOS 6.3

Setup server is always a pain in the ass (if you don’t know chef or other similar tools). It took me two days to get my django app running on the VPS. My problem is there are a lot of tutorials on the website, but few of them cover everything. Also the tutorials are not always working for me, there are many weird problems that are very difficult to Google. So I made some notes for myself, hope it can [...]

Template tag “follow_all_url” failed to render unfollow links in django-activity-stream

I have been trying django-activity-stream for weeks now and it is a great Django app. Everything worked great until today, when the tag “follow_all_url” stops rendering unfollow urls. I tracked back the problem back to a function in class DisplayActivityFollowUrl in activity_tags.py file: def render(self, context): actor_instance = self.actor.resolve(context) content_type = ContentType.objects.get_for_model(actor_instance).pk if Follow.objects.is_following(context.get(‘user’), actor_instance): return reverse(‘actstream_unfollow’, kwargs={ ‘content_type_id’: content_type, ‘object_id’: actor_instance.pk}) if self.actor_only: return reverse(‘actstream_follow’, kwargs={ ‘content_type_id’: content_type, ‘object_id’: actor_instance.pk}) return reverse(‘actstream_follow_all’, kwargs={ ‘content_type_id’: content_type, ‘object_id’: actor_instance.pk}) context.get(‘user’) is supposed [...]

Bad UX from Prismatic

I was just like many others who signed up on Prismatic last week after read this post on TechCrunch. While I enjoyed some of the articles from it (I guess AI is still learning about my interests), there is one thing disturbs me when I checked my twitter today. All of the articles I checked on Prismatic app were shared on my Twitter (and probably also could be on Facebook, but I didn’t grant them:)), instead of what I wanted [...]

Better Logging Support in TestComplete

I have been using TestComplete since May. The test suite has been running since June. Not sure if I used TC in the right way. Now it just acts as a giant Java interpreter to execute all the code in JScript  (a fairly slow one in my opinion). I haven’t used too many of TC’s functions. Anyway if you have to use script test case, you need to deal with logging. TestComplete offers four different levels: event, info, warning, error. Here [...]

New Project: Bring Umbrella

Just started a new project called Bring Umbrella. One reason is that I want to polish my Django skills, another reason is that I want to practice lean startup concepts  with a small project. The Idea I got the idea when I was caught in the rain without an umbrella. For many times I wish there could be a service to remind me bringing the umbrella before I go out in the morning. If I ask myself the same questions I posted in [...]

Why you should never build your own test framework at work

Last week I moved parts of home-brewed automated test framework to the robot framework. It went smoother than I thought and the new framework offered more functionalities that I was hoping to implement but didn’t for the sake of time. I wonder why I chose to write my own framework in the first place, since Robot framework came out few years ago. (probably because that test framework started as an experiment at work and was in “trial” ever since) It reminds me [...]

A simple SOAP mockup service in Python

I was dealing with SOAP tests a lot last month, and WireShark is little too much for simply checking a SOAP request. So I made a little script to show (not capture) the package content. It might be helpful if one needs automated SOAP testing as well. It’s very tiny (26 lines if use without Gzip) and doesn’t depend on any other modules. Source code can be found at https://bitbucket.org/zheli/soap_echo_server/. Comments are welcome here:)

Hello world!

This my first post. All English articles will be moved from http://blog.systemsthoughts.com to here in the future.