This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes issue in performance test cases. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "issue in performance test cases." Watch "issue in performance test cases." New topic
Author

issue in performance test cases.

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 979
    
    2
we have written some performance test cases, the problem which we are facing is, ware setting the maxElapsedTime for each of test case, and for this we have created one annotation maxElapsedTime.
we are using jenkins to build the code.
the problem is, each time test case average time is different.
(ie. i have setted maxElapsedTime 10000ms, for one testcase, now when i build it it build successfully, but next time when i build it gets fail, and require more maxElapsedTime, than i need to again increase that time.
we are using continuous integration also, so it builds 3 or 4 times in the night and build gets failed due to this reason.
can anyone tell me ehy is this happening and how can i solve this?
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 979
    
    2
please let me know any other information is needed?
can anyone think for this why is this happening?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

Why this is happening is going to be specific to your code. All we can recommend is to set the threshold higher and profile/troubleshoot.


[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
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 979
    
    2
Jeanne Boyarsky wrote:Why this is happening is going to be specific to your code. All we can recommend is to set the threshold higher and profile/troubleshoot.


already setted 15% higher, you asking for more higher?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue in performance test cases.
 
Similar Threads
Eclipse, Junit 4, A lot of test cases & Singleton
Junit Test case for java.util.Timer/TimerTask
if cases and function call
Build Issue with testcases
Ho do we select Interesting values for a test case?