File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31069
    
232

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31069
    
232

The hint is to start. Surely you can think of one scenario.
 
Consider Paul's rocket mass heater.
 
subject: test scenarios