Software testing has always been a significant component of the software development life cycle. Also, in any project a good amount of time and cost is required for testing. For optimal results, maximum testing in minimum time is desired with fewest repetitions. In large and complex systems, this is possible only through use of meta-heuristic algorithms to help decide which portions to test first. A similar approach is presented in this paper which demonstrates how the bat algorithm works upon a given state chart diagram and suggests favourable test sequences keeping in mind the critical system modules, which often need to be tested first. A graphical representation and comparative results with other algorithms currently in use reflect the basis of choosing the new alternative technique that this paper presents.