Posts

DynaTrace - Learnings

Image
 Digital Exeperience: Session Segnmentation: opens the user session - user session is the user journey ( interaction of user's device with your application). it's pretty much the sequence of user actions performed by the user within a certain period of  time. the idea behind the user segmentation is that you can filter and depp dive into multiple users actions at the same time. Below are the options on session segmentation: Analysis over time: howmany seesions in total Application Type : (web or mobile or geographical) Application versions - which version is being used more in production. Applcations: which application has more the user session. User experience score: which shows % of satisfying sessions, % of tolerable sessions and % of frustrating sessions. Errors and annoyances: shows howmany sessions have errors like 0 errors for 500 sessions, 1 errors for 300 sessions. Conversions and bounces: shows howmany sessions converted, bouned sessions or netiher convereted and bo...

How to convert LoadRunner script into Jmeter script

Image
  You can Convert LoadRunner below 2 protocol scripts in to Jmeter scripts. Web — HTTP/HTML. Web services. Preparing JMeter for Recording JMeter comes with a built-in  proxy server  that enables intercepting HTTP requests that flow through it and converts them into  HTTP request  samplers. The easiest way to set up JMeter for recording is to use the  JMeter Templates  feature. JMeter can be set up for recording in just a few clicks. Just choose  File  >  Templates  >  Recording  from JMeter’s main menu and then click the  Create  button.  JMeter will populate a Test Plan that is suitable for HTTP(S) traffic recording. All you need to do is expand  WorkBench  >  HTTP(S) Test Script Recorder  and click the  Start  button. Once you click the  Start  button, JMeter will show you a message telling that a certificate was created in JMeter’s  bin  dire...

How to create and execute jar file using CMD(command prompt)

Image
 Creating java file Open note pad and write simple java  program and save as with .java extension. ex: java code: class HelloWorld {     public static void main(String[] args) {         System.out.println("Hello, World!!");      } } save the text file with extension as .java Creating class file compiling java program through command prompt Class file will be created in the same folder after successful compilation of java file Create a manifest txt file with class names ex: NOTE: Space should be provided as highlighted in yellow Command to convert java program to jar file Execute jar file from Command prompt  

an-operation-was-attempted-on-something-that-is-no.html

http://eyeontesting.com/questions/1272/an-operation-was-attempted-on-something-that-is-no.html

Oracle database Testing

In this blog, I’ll tell you how to load test the oracle database using loadrunner. There are different ways to achieve it and one simple way is writing SQL queries in vugen script. In this blog I’m going to tell how to connect to database, how to execute query and how to disconnect. I will be using lr_db functions to achieve this. Loadrunner help is very useful with details about lr_db functions. Connect to Oracle database: lr_db_connect("StepName=Connect",         "ConnectionString=Provider=OraOLEDB.Oracle; dbq=10.xx.xx.xx:1540; Data Source=XXXX; Persist Security Info=True; User ID=username; Password=password",         "ConnectionName=OracleDB",         "ConnectionType=OLEDB", LAST ); SQL statement: lr_db_executeSQLStatement("StepName=PerformQuery",                 "ConnectionName= ...

7 Useful Command tools to monitor Linux performance

Image
Here are the top 7 Command tools which are very useful to monitor and debug Linux System Performance which are frequently used command line to monitor Linux system performance. TOP - LINXU PROCESS MONITORING It display CPU usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User, Commands and much more. It also shows high memory and cpu utilization of a running processess. The top command is much userful for system administrator to monitor and take correct action when required. Let’s see top command in action. # top VMSTAT – VIRTUAL MEMORY STATISTICS Linux VmStat command used to display statistics of virtual memory, kernerl threads, disks, system processes, I/O blocks, interrupts, CPU activity and much more.  # vmstat TCPDUMP – NETWORK PACKET ANALYZER Tcpdump one of the most widely used command-line network packet analyzer or packets sniffer program that is used capture or filter TCP/IP packets that received or transferred on a...

Main causes of Out-Of-Memory Errors

Main causes of Out-Of-Memory Errors When there is no enough space to create a new object in heap JVM through a Out-of-memory errors before giving this error JVM surly runs garbage collector once to check for available memory which can be freed .The main causes for this error can be. It is possible that you have estimate less memory for your application for example your application need 2 Gb of memory but you have configured only 512 Mb so here you will get an OOME(Out-of-memory errors )  1.Due to Memoryleak :- Memory leak is responsible for decreasing the available memory for heap and can lead to out of memory error for more read What is a Memory Leak in java?  2.Memory fragmentation :- It is possible that there may be space in heap but it may be not contiguous . And heap needs compaction . Rearrange its memory. 3.Excess GC overhead :- Some JVM implementations, such as the Oracle HotSpot, will throw an out-of-memory error when GC overhead becomes too great. This...

web_set_max_html_param_len

The  web_set_max_html_param_len  function sets the maximum length of any HTML string which VuGen can retrieve and save in a parameter. The default value for the maximum length of a parameter that can be captured during correlation is 256 characters. To retrieve a string longer than 256 characters, use  web_set_max_html_param_len  to increase the maximum valid length. An attempt to save a string whose length exceeds the maximum length will fail

Network virtualisation in Tru-client Protocol

Here is step by step procedure for network virtualisation in truclient protocol http://community.hpe.com/t5/LoadRunner-and-Performance/New-to-Network-Virtualization-emulation-in-TruClient-Here-s-an/ba-p/6883204#.V5z5DPl97IU

Lr_set_debug_message Function In Loadrunner With Examples

Image
Lr_set_debug_message – One of my favourite lr function in load runner. It is mainly useful when we are unable to find correlation value in a particular request. We usually use  Extended log -> Data Returned by Server  in Run-time Settings to get all the response in replay log. Sometimes the vugen will crash or becomes slow as the vugen is writing all the response to replay log. Extended Log in Run-time Settings If it crashes or taking long time to execute the script then it’s better to use lr_set_debug_message instead of using  Data Returned by Server . In the following example we have added data returned by server only to particular request. Example:   lr_set_debug_message   ( LR_MSG_CLASS_EXTENDED_LOG   |   LR_MSG_CLASS_FULL_TRACE ,   LR_SWITCH_ON );          web_ url ( "Bing" ,          " URL = http://www.bing.com/ " ,      ...

Deep Description on Runlogic

Image
Types of Action files Vuser_init Action Vuser_end Vuser_init This is the first action that is executed by the vuser and it comes under the  init  section of the script. It is executed only once in the life cycle of a vuser. By life cycle we mean the time between the start and the stop of a vuser. Even if the vuser has multiple iterations to execute, the set of steps incorporated within this action file is executed only once. We cannot disable/delete vuser_init. Even if it does not contain any steps to execute, it has to be present. We can put those steps in vuser_init that need to be executed only once. E.g. a script that logs in the same user to an application and performs certain tasks, since the same user is logging in every time, login steps can be put in vuser_init. But it also depends on the business requirement whether we should include launch and login in vuser_init. If launch and login is to be observed for its performance then including them in vuser_i...

Error -27492: "HttpSendRequest" failed, Windows error code=12057 (certificate revoked) and retry limit (0) exceeded for URL="

This error occurs when using WinInet replay instead of sockets with Integrated Authentication enabled in run-time settings. The purpose of this was to allow vusers to use SSO with SPNEGO authentication in an IBM WebSEAL environment. After spending some time with the mystical HP level 3 support, they identified an undocumented flag which helps out significantly in this. So, instead of using the WinInet replay engine (which is not encouraged by HP) you should do something similar to the following. vuser_init() {             // Preferred run-time settings             // Browser -> Browser Emulation        // [ ] Simulate a new user on each iteration        // Preferences -> Options        // Enable Integration Authentication [Yes]     ...

CHECK POINTS or FUNCTIONS or VALIDATIONS:

Check Points: To validate the data on a web page use the below 2 types of check points in LOAD RUNNER script. 1.        Text Check Point 2.        Image Check Point Text Check Point : To validate the text on a web page, we use the below type of text check points. i)                     web_reg_find( ) : It verifies the given text on a web page and it returns the count of the given text using a SaveCount argument. Syntax:          Web_reg_find(“Text=Username”, “SaveCount=Test1”, LAST); Web_url(“…………………………………………..                         …………………………………………                  ...