Package org.apache.jmeter.samplers

Examples of org.apache.jmeter.samplers.SampleResult.sampleEnd()


        {
            // general exception
            res.setResponseData(ex.toString().getBytes());
        }

        res.sampleEnd();

        // Set if we were successful or not
        res.setSuccessful(isSuccessful);

        return res;
View Full Code Here


            {
                manager.releaseConnection(key, conn);
            }
        }

        res.sampleEnd();
        return res;
    }

    private synchronized DBKey getKey() throws ConnectionPoolException
    {
View Full Code Here

      res.setResponseCode("500");
            res.setResponseMessage(ex.toString());
        }

        // Calculate response time
        res.sampleEnd();

        // Set if we were successful or not
        res.setSuccessful(isSuccessful);

        return res;
View Full Code Here

    catch (Exception ex){
      log.debug("",ex);
      res.setResponseCode("500");
      res.setResponseMessage(ex.toString());
    }
    res.sampleEnd(); //End timimg
   
    res.setSuccessful(isOK);

        return res;
    }
View Full Code Here

        {
            getLogger().error("JavaTest: error during sample", e);
            results.setSuccessful(false);
        } finally{
      // Record end time and populate the results.
      results.sampleEnd();
        }

        if (getLogger().isDebugEnabled())
        {
            getLogger().debug(
View Full Code Here

      log.warn(ex.toString());
      res.setResponseCode("500");//$NON-NLS-1$
      res.setResponseMessage(ex.toString());
    }

        res.sampleEnd();

        // Set if we were successful or not
        res.setSuccessful(isSuccessful);

        return res;
View Full Code Here

        {
            getLogger().error("JavaTest: error during sample", e);
            results.setSuccessful(false);
        } finally{
      // Record end time and populate the results.
      results.sampleEnd();
        }

        if (getLogger().isDebugEnabled())
        {
            getLogger().debug(
View Full Code Here

            getLogger().error("SleepTest: error during sample", e);
            results.setSuccessful(false);
        }
        finally
    {
            results.sampleEnd();         
        }

        if (getLogger().isDebugEnabled())
        {
            getLogger().debug(
View Full Code Here

            close(stmt);
            close(conn);
        }

        // TODO: process warnings? Set Code and Message to success?
        res.sampleEnd();
        return res;
    }

    private String resultSetsToString(PreparedStatement pstmt, boolean result, int[] out) throws SQLException, UnsupportedEncodingException {
        StrBuilder sb = new StrBuilder();
View Full Code Here

                        m.invoke(theClazz,new Class[0]);
                    }
                };
                tr.runProtected(theClazz, p);
                tr.endTest(this.TEST_INSTANCE);
                sresult.sampleEnd();

                if (!getDoNotSetUpTearDown() && TDOWN_METHOD != null){
                    TDOWN_METHOD.invoke(TEST_INSTANCE,new Class[0]);
                }
            } catch (InvocationTargetException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.