From commits-return-7432-apmail-jmeter-commits-archive=jmeter.apache.org@jmeter.apache.org Sat Apr 1 14:01:08 2017 Return-Path: X-Original-To: apmail-jmeter-commits-archive@minotaur.apache.org Delivered-To: apmail-jmeter-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE63719169 for ; Sat, 1 Apr 2017 14:01:07 +0000 (UTC) Received: (qmail 74268 invoked by uid 500); 1 Apr 2017 14:01:07 -0000 Delivered-To: apmail-jmeter-commits-archive@jmeter.apache.org Received: (qmail 74193 invoked by uid 500); 1 Apr 2017 14:01:07 -0000 Mailing-List: contact commits-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list commits@jmeter.apache.org Received: (qmail 74128 invoked by uid 99); 1 Apr 2017 14:01:05 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2017 14:01:05 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 736413A3BF9 for ; Sat, 1 Apr 2017 14:01:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1789801 [9/12] - in /jmeter/trunk: build/ docs/ docs/images/screenshots/ docs/images/screenshots/changes/3.2/ docs/images/screenshots/http-config/ docs/images/screenshots/jms/ docs/localising/ docs/usermanual/ src/core/org/apache/jmeter/ut... Date: Sat, 01 Apr 2017 14:01:03 -0000 To: commits@jmeter.apache.org From: milamber@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170401140104.736413A3BF9@svn01-us-west.apache.org> Added: jmeter/trunk/docs/usermanual/include_controller_tutorial.html URL: http://svn.apache.org/viewvc/jmeter/trunk/docs/usermanual/include_controller_tutorial.html?rev=1789801&view=auto ============================================================================== --- jmeter/trunk/docs/usermanual/include_controller_tutorial.html (added) +++ jmeter/trunk/docs/usermanual/include_controller_tutorial.html Sat Apr 1 14:01:02 2017 @@ -0,0 +1,95 @@ + +Apache JMeter + - + Include Controller Tutorial

42. Include Controller Tutorial

+

+This is a short tutorial explaining the basics of the Include Controller. The Include Controller +provides an easy way to include modules in a test plan. It is different than the Module Controller +in a couple of ways. +

+ +
    +
  • the Include Controller loads a simple controller with all it's samples, where as the Module + Controller can use any controller
  • +
  • the Include Controller doesn't use the workbench
  • +
  • the Module Controller doesn't load from a file
  • +
  • the Include Controller loads the module at runtime and doesn't display the contents of the + Simple Controller
  • +
+ +

+There are a couple of reasons why one might want to use the include controller. +

+ +
    +
  • Break a test plan into reusable modules
  • +
  • Reduce the cost of maintaining test plans
  • +
  • Reduce duplication of common process
  • +
+ +

+For example, say you need to test an application that requires login. If each test plan had the login requests, +a change in the login process would require updating all test plans. By making the login a module, all other +test plans can reuse it. When the login process changes, the change is made to the module and all other test +plans get the change. One limitation of the current implementation is the contents of the module are only +loaded at runtime, so users can't view or edit the contents of an included module. +

+ +
Include Controller
Include Controller
+ +

+The Include Controller has two properties. The name and the filename. The name +is the descriptive name for the controller in the test plan. The filename is the name of the .jmx file. +

+ +

42.1 Step-by-step

+ +
    +
  1. Start JMeter
  2. +
  3. Select the workbench
  4. +
  5. Add → Logic Controller → Simple Controller +
  6. +
  7. Enter module1 in the name
  8. +
  9. Now add one or more samples to the controller
  10. +
  11. Once the samples are added, right click on module1
  12. +
  13. Select save as and save it as module1.jmx
  14. +
+ +
+ +

+module1.jmx can now be used with any test plan. The Include Controller hasn't been tested +with other controllers as the root element. If you need to use other controllers, use a Simple Controller +as the root and add other controllers to it. +

+ +
\ No newline at end of file Propchange: jmeter/trunk/docs/usermanual/include_controller_tutorial.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: jmeter/trunk/docs/usermanual/index.html URL: http://svn.apache.org/viewvc/jmeter/trunk/docs/usermanual/index.html?rev=1789801&r1=1789800&r2=1789801&view=diff ============================================================================== --- jmeter/trunk/docs/usermanual/index.html (original) +++ jmeter/trunk/docs/usermanual/index.html Sat Apr 1 14:01:02 2017 @@ -5,7 +5,7 @@ APACHE LOGO -->