Recording your first Virtual User

This first OctoPerf’s tutorial guides you trough the following steps:

  1. Creating a Project in OctoPerf,
  2. Configuring Fiddler to record HTTP/HTTPS traffic,
  3. Capturing the behavior of a visitor on our sample website PetStore,
  4. Exporting the record as a HAR file,
  5. Creating a new Virtual User (abbreviated VU, a script that simulates the journey of the visitor through the web application) in OctoPerf by importing the aforementioned HAR.

Notes:

Another good option for recording is to use FireFox. Please consult this blog post to learn how to record a new VU in 5 minutes.

Transcript

0s

Hello and welcome to this first tutorial on OctoPerf’s new version.

4s

I'm Guillaume from the OctoPerf team and today's topic is recording and creating our first user.

11s

But before we start, this video is part of a series of short tutorials to quickly learn how to use OctoPerf.

18s

You will see that the learning curve is very short.

21s

Our first step is to create a project, let's name it "I love octoperf".

31s

Now we are prompted to create a new virtual user.

35s

To clarify the term, a virtual user is a script that simulates the journey of a visitor through your application.

43s

To create it we will capture what a real user does.

46s

There are several ways to achieve that, through JMeter, chrome or fiddler.

52s

I go for fiddler since it is a very reliable option, we strongly recommend that you use it.

58s

And before you ask, you can get fiddler from Telerik's website, the link is in our documentation.

64s

I already have it installed, but let's go over the initial configuration together.

70s

First we must install the fiddler root certificate to enable recording of HTTPS.

76s

This is available in Tools -> Fiddler options -> HTTPS

83s

Just check capture HTTPS connects and decrypt HTTPS traffic.

88s

We are then prompted whether to trust this certificate or not, select yes of course.

95s

The certificate has been installed in your operating system, for windows it means that IE and Chrome will now use it.

102s

Keep in mind that Firefox has its own certificate store so the procedure might be more complex.

108s

Next we must increase the size of responses stored by fiddler.

113s

Let's copy/paste it from OctoPerf documentation into the fiddler command line.

118s

This only needs to be done once.

122s

The last step is not mandatory but makes traffic imported in OctoPerf easier to read.

127s

In "Rules" check "Hide connects" that way we avoid importing useless information.

135s

Now let's go ahead with our first recording.

138s

Recording is started from the file menu, once it's active, every HTTP request sent by our browsers will be recorded.

145s

For this reason it is recommended to limit the number of browsers and tabs opened.

151s

The demo application we are going to use is right here.

155s

You should know that this application is public, so feel free to use it for your own trials.

160s

It is a simple webstore but it will allow us to record a short use case.

165s

First we login, then we select a category of pets.

173s

Now we pick a product and add it to the cart.

180s

Next we need to validate our cart, confirm our personal details and submit our order.

187s

Ok now we're done, back to fiddler to stop the recording.

193s

Then go to File -> Export -> All sessions and select HAR 1.2 as the export format.

207s

The final step is to import this file in OctoPerf, by selecting the fiddler option.

217s

And once the upload is finished we get to the design of our virtual user.

223s

There is some work to be done before we can launch a test with this user, but this will be a story for another video.

229s

I hope you enjoyed this tutorial, stay tuned for more and check the other videos.

234s

Feel free to comment if you have any question.

237s

Also keep in mind the live chat inside OctoPerf is the best way to talk to the core team.

242s

Thanks for watching, take care, cheers bye.