Parameterization or Randomization tools

In my previous post I was talking about parameterization or randomization in our tests, why is it necessary and how to add it in our tests. In this article I would like to talk about a tool that can help us achieve that, a tool that can save us a lot of tedious work.

Let's say we need to do some validation tests on a set of fields in a form that will be displayed on a page after saving them, this fields are:

  • Name
  • Lastname
  • Phone
  • Address
  • City
  • Country

We need to validate some different things like:

  • Text once saved fits the design and it doesn't overflow or overlaps anything
  • Min. allowed char.
  • Max allowed char.
  • Accented or other funky chars (á ç ñ) 
  • No numbers on Name and LastName fields
  • No letters on Phone fields

And we can go on and on and we could end up typing (and thinking about) 100 or 1000 different names, last names, phones, etc but. It wouldn't be better to have a tool that generates all that info for you?

Well, "there's an app for that". One of them is Generate Data it basically generates random data for us to use in our tests. Next I will detail how does it do it.

Read more...

Parameterization or Randomization

"Insanity is doing the same thing over and over again and expecting different results".

Albert Einstein

While reviewing a test script that I had setup to run daily, I found a test case had failed and decided to investigate further.  In doing so, I used a different user to run against the same script, but ran manually due to the previous user not meeting the perquisites I have defined for that script. The solution, I found, turned out to be more difficult than I had been expecting.  After trying with the different user, the script returned 3 more different errors.

While analyzing these errors, I discovered something odd.  Why would the same script return different results for two different users?  The difference, I discovered, was that my new testing user had been registered as a male, instead of my original, which was registered as a female. My script, in a nutshell, uses a test account to login to a social network to review different languages strings that appear on the site.  The string differences on this site of a male and female user are vast.  But, as it relates to my script, I noted the 3 errors as a result of using a different gender.

How can I solve this for future testing scripts?

Read more...

Filling a form using a CSV on iMacros part 2 (Loops)

UPDATE: Recently I tried to take a look at iMacros again for a little task that I had to do. It's been a while since the last time I used it and sadly I found out that with the new company (Ipswitch) they turned the tool, which already lacked of bunch of stuff to even a more restrictive tool, to the point is unusable unless you pay some kind of license for it. It's not installable anymore on the newer versions of firefox and they removed basic functionality that kept it useful even with all the shortcomings, like pulling data from CSV files. Therefore, I encourage you to don't even try this anymore, I'll leave the posts up but they are most likely not going to work since the tool doesn't work like this anymore.

 

On the previous post we already learn how to call a CSV document using the command

SET !DATASOURCE file.csv

 And we also learn that once "declared" the document, we can extract from it, the data of each column, calling each of those columns the following way

{{!COL#}}

 where # is the column number, using this variable in a TAG command. For example:

TAG POS=1 TYPE=TAGTYPE ATTR=SOMEATTR:someattrvalue CONTENT={{!COL1}}

 When we did this on the previous post, we realized that when clicking on Play button, it only fills the form using just the first line of the CSV document. In this post we will learn how to call each one of the lines of the CSV document creating a "loop" in that way we can use all the document to perform the same task several times.

Read more...

How to upload multiple pictures to Pinterest and not die trying

UPDATE: Recently I tried to take a look at iMacros again for a little task that I had to do. It's been a while since the last time I used it and sadly I found out that with the new company (Ipswitch) they turned the tool, which already lacked of bunch of stuff to even a more restrictive tool, to the point is unusable unless you pay some kind of license for it. It's not installable anymore on the newer versions of firefox and they removed basic functionality that kept it useful even with all the shortcomings, like pulling data from CSV files. Therefore, I encourage you to don't even try this anymore, I'll leave the posts up but they are most likely not going to work since the tool doesn't work like this anymore.

I don't know about you, my multiple readers (hahaha), but I have been on Social Networks since the beginning and I'm not that old, and let's agree that Social Networks are not that old either. Maybe they have been around for about 7 or 8 years? Well, in all this time we have seen a lot of Social Networks come and go, like MySpace, Badoo, Metroflog, other flogs, sexy or not, etc.

One of the most common features is the ability for users to upload pictures. And that has been the base for many of them, like Pinterest.

Pinterest is a Social Network where you can share photos and that's pretty much it. It has some interesting features like sharing pictures from other sites without having to download the pictures and then upload them to Pinterest. You can just browse other sites and "repin" a photo to your Pinterest "board" (boards are like folders where you organize your pictures) and you can "like" and upload a picture from your computer and some other stuff.

Similar to other Social Networks from the past (like Metroflog) in Pinterest you can only upload pictures one at a time, so if you want to upload more than one picture, you have to click on the button for "Pinning" a new picture, select it, select your board, write a description, and click on "submit" and then repeat this process every single time. But what happens when you want to upload hundreds of pictures? Now it's tedious and you probably will only upload some of them.

In this post, I will try to explain how to use iMacros to upload any number of photos to Pinterest and not die trying.

Read more...

Filling a form using a CSV Doc with iMacros

UPDATE: Recently I tried to take a look at iMacros again for a little task that I had to do. It's been a while since the last time I used it and sadly I found out that with the new company (Ipswitch) they turned the tool, which already lacked of bunch of stuff to even a more restrictive tool, to the point is unusable unless you pay some kind of license for it. It's not installable anymore on the newer versions of firefox and they removed basic functionality that kept it useful even with all the shortcomings, like pulling data from CSV files. Therefore, I encourage you to don't even try this anymore, I'll leave the posts up but they are most likely not going to work since the tool doesn't work like this anymore.

In this post I will try to explain how to extract info from a CSV document, and then use that information to fill a form. The CSV documents can contain information in tables, they can be opened with text editors, and/or with Spreadsheet Applications like Excel, Google Docs, etc. It's format is the following:

Read more...

Page 3 of 4