How do i write test cases?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madhavipulluri
    New Member
    • Sep 2006
    • 1

    How do i write test cases?

    i have learnt testingtools but still i dnt know how to write any testcases,i just have theoritical knowledge,so can u help me with practical,what do i do to write a test case
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    Madhavi,

    I will move this post to the programmers lounge as it is a specific help question.

    Welcome to the community and hope you find the answers you are seeking.

    ~ KUB
    niheel @ bytes

    Comment

    • koder
      New Member
      • Sep 2006
      • 23

      #3
      Hi,
      please , can you specifically tell us,which domain u r seeking to write test cases?
      if u want to test a code written in c,
      u can adopt several testing methodologies
      1.Unit testing
      2.Functional testing
      3.IMI(inter modular interface) testing
      4.Functionality testing
      5.system testing

      methods,1-4 comes under white box testing and 5 comes in black box testing

      for method 1.-->using c language

      to start with,identify all loops,like while,for etc
      ex: for(i=0;i<5;i++ )
      {
      printf("\n hai");
      }

      in this loop,u can write test cases to test this loop,by assigning this values to i
      to find the loops r working fine

      2.for functional testing,create anoter directory,write down dummy functions for all functions u have in your code and call these dummy functions which access ur data base and see they r working fine.

      i will continue if u find this info is usefull
      regds

      Comment

      Working...