You Are Here:

Community: Blogs

Harry Li's Forum Nokia Blog

Batch testing in Symbian C++

kcomex | 15 September, 2008 14:39

Hello folks, it's really a long time since my last post. Because of the busy schedule of my own company's project, I'm actually away from the Mozilla platform porting effort for a while. So it's a bit embarrased to carry out fresh experiences to share with you at this moment. However I will try to demostrate a testing trick which I learned from NSS (Network Security Service) testing section.

Probably all Unix gurus like the powerful shell script, and it is commonly used for testing purpose. In NSS the test cases are all called by several complex shell scripts, and there is a very flexibility to extend usage of these tests caller scripts. Unluckily we don't have a shell script executing environment on Symbian OS. But I was borrowing ideas of this testing method, by writing a console application and treat it as the main body to coordinate all test cases.

Here are some notes:

  • We use a config file to tell the tests caller which executables we want to call, their executable image names, the calling arguments, and expected return code. 
  • There is a log file to log all activities about test cases calling time and return value status.
  • Frequently adjusted variables are defined at header as MACROs, like log file name and storage path. Please note STDIO_FILE macro should be defined the same as the standard output file in your C:\System\Data\config.ini
  • You could control test cases running mode, by add either pause before run every test or pause after every test case or both.

I hope this trick will help you on porting massive test cases project onto Symbian OS. And also if you have any comment on this, please feel free to send your comment.

Attachment 1 : source file, run_tests_symbian.cpp
Attachment 2 : example config file, tests.cfg

Cheers~ :p

RSSComments

Script executing environment

erik.jacobson | 17/12/2008, 19:46

Do you know about the Zsh port? Check out the PIPS wiki page.

?

trouwkaarten kiezen | 05/03/2009, 16:31

How is your company doing?

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia