18 Replies Latest reply: Jun 19, 2014 1:59 PM by Amir Vastani RSS

jmeter: multiple sessions

alex.archebit

Hi,

using QVScriptGenTool I realized my jmeter script.

Testing with 50 threads (users), I find in session log a lot of messages like  "Killed because Named User Cal was needed from another client". Every thread interrupts started session.

In Qlikview server we have only Named User CALs and Document CALs.

NTFS authorization is required.

 

Different logins ,added using HTTP Authorization manager, are not used. Only the login of user that run jmeter is used.

 

Someone launched the script with more contemporary sessions in qv10?

  • jmeter: multiple sessions
    Gary Strader

    I am working on this issue also.  Have you found a solution?

     

    Did you see the document called "GenericTool-BA-how-to-enable-and-disable.docx" in the QVScriptGenTool package?

     

    Gary

    • jmeter: multiple sessions
      alex.archebit

      Thanks for your suggestion about the document called "GenericTool-BA-how-to-enable-and-disable.docx".

      Unfortunately this solution uses dms authorization.

      I need ntfs authorization in order to identify qlikview administrator users and launch dynamic update commands.

       

      I tried to modify jmeter in order to add ntlm support (see http://hc.apache.org/httpcomponents-client-ga/ntlm.html or http://agilitator.com/blog/?p=987), but without success.

       

      Alex

      • jmeter: multiple sessions
        Gary Strader

        Alex -

         

        The environment we wanted to test was using QVWS rather than IIS.  We were trying to use the password mechanism that comes with QVScriptGen.  Our main problem was that when we tried to pass credentials in using the password file, IWA (integrated windows authentication) always intercepted and passed my local logged in account credentials, rather than the accounts we were trying to use in the password file.

         

        Our workaround was to install IIS to run on port 8080, side by side with QVWS, and disable Windows Auth and enable Basic Auth in the IIS config.  This forces a Basic Auth dialog to pop up when you go to AccessPoint, and IWA doesn't intercept.  JMeter has the ability to pass in Basic Auth credentials from the password file, which we utilized.  The Basic Auth users in the password file are real Windows users.  We are still running in NTFS mode.

         

        One more thing - the generated JMX had to be modified in JMeter to enable Basic Auth.  It's only a few steps that need to be done.

         

        Gary

        • Re: jmeter: multiple sessions
          Björn Wedbratt

          Hey Gary,

          Can't you just change authentication scheme from "NTLM" to "Basic" in config.xml for QVWS in your case, instead of installing and configuring IIS?

           

          <HttpAuthentication url="/QvAJAXZfc/Authenticate.aspx" scheme="Basic" />

           

          Just a thought, never tried it together with jMeter, but that's how I change my QVWS to support Basic auth or Kerberos if required ("Negotiate").

           

          Cheers,

          B

          • Re: jmeter: multiple sessions
            Jay Jakosky

            Can we? How would we know? There's no documentation or discussion of this option.

          • jmeter: multiple sessions
            alex.archebit

            Thank you Bjorn,

            it works fine, even with jmeter.

             

            Alex

            • jmeter: multiple sessions
              Brindlogcool

              Hi Bjorn,

               

              I am also using the Jmeter with Qlikview GUI generator.

              Used to get the error

              "Killed because Named User Cal was needed from another client". Every thread interrupts started session.

              But i have changed to use the cookie license in the xml file. And i am not getting the error . But the problem is in the even log it is having the messages Mount, Document Load. It has only the  Ticket Created ,Ticket Found. Also Cpu spent in session log is always zero . And the QliKView user is shown as ${H}. It would be great if you could suggest some solutions.


              • jmeter: multiple sessions
                Sebastian Fredenberg

                Hi brindlogcool,

                 

                If the QlikView user is shown as ${H} or ${H1}, it seems that the script expects a file with headers which it does not find. If the "Authorization enabled" checkbox is checked on the Properties tab in the QlikView Script Generator GUI, the script will require a file containing authorization variables.

                 

                That file should be defaulted to "..\SupportFiles\usrpwd.txt" so it might be that the file is missing (or folder structure has changed) or no file at all has been specified.

                 

                Regards

                Scalabilty Center

                • jmeter: multiple sessions
                  Brindlogcool

                  Thanks Sebastian,

                   

                  I have rechecked my supportfiles.

                  There is no change in the folder structure and it is fine.  I have specified the username(without domainname) and  password in the usrpwd file.Do i need to provide with Domain/Username.Also for more clarification QVWS authentication is NTLM. Do i need to change it to Custom Header.

                  • Re: jmeter: multiple sessions
                    Swetha Donthu

                    Hi Sebastian,

                     

                    I am trying to figure out what authentication type to use NTML or Basic, our Qlikview server default authentication type is NTML (under System > Set up> Authentication), I am testing a QV server licensed with 100  named user CALS.

                    I understand that for testing scenario of multiple users acessing different documents in different JMeter instances, should we choose NTML?

                    For NTML one authenticated windows user account which runs load test needs to be enough, we need not create and supply other test windows accounts, right?

                    When do we need to choose authentication type Basic?

                     

                    please suggest, I appreciate your help!

                     

                    Thanks,

                    Swetha

                    • Re: jmeter: multiple sessions
                      Sebastian Fredenberg

                      Hi,

                       

                      Actually I would recommend using header authentication, if possible. Set the environment up to use header authentication, and do the same for the tools, which means creating a textfile with usernames for the users you want to simulate. No extra windows accounts need to be created (you still need the one running the script to belong to the domain etc)

                       

                      Basic can do the trick as well, but there is some more steps to take so I would try the header first.

                       

                      As an advice, before running multiple users, run the script with one user only to verify that one user can be simulated, then test with multiple users.

                      • Re: jmeter: multiple sessions
                        Kamal Kurswani

                        Hi Sebastian,

                         

                        Continuation with the last response on using header authentication, does authentication type has any dependence on Cals Type avaliable on QV server?

                        We have QV server licensed with 100  named user CALS. 

                        Could we able to access files from QV server with only Named cals and header authentication type setup?

                        Or do we need Session cals for  header authentication type setup?

                         

                        Thanks,

                        Kamal

                        • Re: jmeter: multiple sessions
                          Sebastian Fredenberg

                          Hi Kamal,

                           

                          You are not limited to have session CALs if using header. If you have Named user CALs and have set up the environment to assign them properly it will work with the tools if it works for single users accessing the document(s) manually via a browser.

                          Regarding how it should be setup on the server side,that information can be found the Qlikview Server Reference Manual.

                           

                          Regards

                          Scalability center

                • Re: jmeter: multiple sessions
                  iamqvsap

                  Do we need DMS Authorization to be set for Multiple User and Basic Authenticatin?. Can we still create user in Local machine and use Basic Authentication. I have checked that it works if user are created in the QVS using DMS and Basic Authentication. Any document related to user creation on Local Machine and Basic Authentication wouild be great

        • Re: jmeter: multiple sessions
          Amir Vastani

          Hi Gary,

           

          Might you be able to help me with resources on how you setup jMeter to use Basic Auth as well as IIS config?

  • Re: jmeter: multiple sessions
    Jesús Santisteban Rivero

    Where can we get this QVScriptGenTool ?