How to insert break point in script?
I record a script of a web page which adds a user in database now I want to run this script for 100 users without using user group.
I want script break at the end of execution. Mean after one user execute script then it display break point and I can check the record inserted in DB then I execute script for 2 user and so onů
So tell me is it possible?
Re: How to insert break point in script?
The easiest way to do you want is to use the "exit" statement, which you can insert in the script to cause it to stop running. If you want single user, just run it in the modeler. If you really want 100 users, then you will have to create a task group, set it to 100 users, and assign the script with the "exit" statement added.
You can also experiment with "single step mode" in commander. It crashes for me quite often, so I haven't used it a lot, but if stable for you (I run XP Pro), it could be much better for debugging multi-user tests. To enable, on the configuration tab in commander, right click on the number of VUs (I have set my test to 2 users) and select menu item "single step task group". This opens three panes with many different options. First, select the radio button for All Configured Users. Next, right mouse on the script item and select insert/remove breakpoint.
Hit the green arrow and ALL VUs will start to run (by default VU1 will be selected for viewing.) You can select any other VU or ALL VUs in a drop down list box. The bottom pane will have a log of the HTTP requests executed including text of results (which could be cut and paste into a browser to render what was returned... a great way to visualize whats happening). Next you can resume, single step, etc, and finally you can stop execution with the block square. The left side of the tool bar has a red X that returns you to the "normal" look and feel of commander. Its pretty cool functionality, but it was/is prone to crashing, so I've developed other ways to debug errors that only occur with multiple users. Your results might be different.