aspose file tools*
The moose likes Testing and the fly likes test scenarios Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "test scenarios" Watch "test scenarios" New topic
Author

test scenarios

akshitha Akki
Greenhorn

Joined: Aug 03, 2012
Posts: 24
If there is a code doing the following,

To find the shortest distance from Location A to Location B taking the low traffic as well as a constraint,

what are the test scenarios that can be implemented to check that the code works correctly?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

This sounds like homework or an interview question. What test scenarios can you think of?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
akshitha Akki
Greenhorn

Joined: Aug 03, 2012
Posts: 24
I could not control myself from posting this question, I thought of getting an hint on solving the problem.

At the first thought it gave me idea to remember about the algorithms that can be used to find the shortest path between 2 points. So basically it should be something similar to testing any algorithms.But I was unable to get a start on that part.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

The hint is to start. Surely you can think of one scenario.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: test scenarios