symbian os unit download
Home arrow Community Forum
Symbian OS Unit
Welcome, Guest
Please Login or Register.    Lost Password?
testdriver.h (1 viewing) (1) Guest
This is the forumheader in the basic forum information
Go to bottom Post Reply Favoured: 0
TOPIC: testdriver.h
#17
amey2003 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
testdriver.h 1 Year, 2 Months ago Karma: 0  
After studying symbianosunit, i understood that we have to modify testdriver.h in order to test our application.

I mean creating new class for every test function in testheader.h and overriding its run function.

Also if i clean my project, testdriver.h gets deleted.

So is it meant to be created automatically??

I came to know that some pearl script is handling this..but is there any way to disable this?
:
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#18
Maze (User)
Fresh Boarder
Posts: 13
graph
User Offline Click here to see the profile of this user
Re:testdriver.h 1 Year, 1 Month ago Karma: 0  
No, you do not change the TestDriver file itself. That one gets created from other files, by the perl scripts you mentioned.
The idea is that you write the test cases and that the perl script takes care of creating the necessary files to really run your tests.
The perl script will extract form your file all the functions that start with "test"... the best is to follow the tutorial to understand what you have to change
Since C++ does not really allow introspection, you would need to register all your test functions, which can easily become a very painful task. Thus, the perl scripts.
If you want to disable the perl scripts you would need to disable it in the bld.inf file (where the make file is included, if I remember correctly... was quite a while since I lust touched this part and I ave made quite a few changes in my updated version of the framework), but then again, why would you like to do that, since the perl script is exactly what takes away a lot of the work.
Yes, the script does not check whether you have or haven't changed anything in your C++ file, and therefore (unnecessarily) recreate the TestDriver, but this is not really a too big problem, since you will recompile you test cases (and run them) when you have made changes.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/07/20 14:53 By Maze.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Who's Online

We have 4 guests online

Login Form






Lost Password?
No account yet? Register