Ideas for new Selenium and Cloud Testing HowTo’s

August 11, 2009

Cloud Testing Logo

Thanks to everyone for their positive feedback on our HowTo articles so far http://blog.cloudtesting.com/howtos/. We have a number of ideas of future articles we’re going to cover, but would be interested in finding out what you want to read about.

Articles we have in the pipeline will cover:

  • Working with pop-up windows using Selenium and Cloud Testing – advanced
  • Checking dynamic text or content using Selenium and Cloud Testing
  • Data Driven Testing using Selenium and Cloud Testing
  • Checking for XSS (Cross Site Scripting) using Selenium and Cloud Testing
  • Cross Browser Testing – strategies using Selenium and Cloud Testing
  • Detecting differences by comparing screenshot images using Selenium and Cloud Testing
  • Capturing component information and headers using Selenium and Cloud Testing
  • Analysing your page content and speed using Selenium and Cloud Testing

If you have any other suggestions, please leave a reply, or contact us.


Cloud Testing HowTos

June 19, 2009

The fill list of Cloud Testing How To articles can now be found at: http://blog.cloudtesting.com/howtos/


Running Selenium scripts on Cloud Testing

June 17, 2009

This HowTo covers running your Selenium test script using the Cloud Testing service. It assumes that you have already captured and uploaded/imported your script – for details see HOWTO: Capture a script using Selenium IDE and import into Cloud Testing.

Log in to the Cloud Testing portal at http://portal.cloudtesting.com/, navigate to the project which contains the script you wish to run.

Running the script

You can either run the test by:

a) clicking on the Run Now icon within the Action section for this script…

running2

b) Once you have selected the script, click on the ‘Run Test’ icon in the menu bar…

running3

c) Select the ‘Run Test’ icon from wherever it is show – in this case in the list of existing results for this test…

running4

When you run a test, you will either be given confirmation that the test has been queued

running5

or if you do not have sufficient testing credits, the following message will be displayed.

running6

Extra credits can simply be applied to your account, which will then allow you to schedule the test.

You can check on the progress of your scheduled tests by viewing the ‘Pending’ tab.

running7

Viewing the results

The result of this and previous tests can be viewed in the Results area. They are listed in date order, but can be sorted by different columns if required.

running8

Selecting an individual result, allows you to drill in and view all the steps that make up that script.

Clicking on either a thumbnail of a screenshot will display the full size captured image in a new window or tab. The HTML for captured steps can be viewed in a new tab or window by clicking on the link.

You can navigate through the results by clicking on the Previous and Next buttons.

Full details and features of the Cloud Testing service are available at www.cloudtesting.com.


Using Cloud Testing Notes

June 16, 2009

In this HowTo, we explain how to make use of the Notes feature in the Cloud Testing service to aid distributed development and test teams work better.

Notes

Notes can be added or edited by any user who has ‘Run’ or ‘Edit’ access to a project. They are shared between all users of the project and can be used to pass information on why a test failed, suggestions or messages to other team members.

To create a new note for a particular test result, click on the Add Note icon (note_add). You will then be presented a pop-up box to enter the note into.

note1

Once you have saved your note, the Note icon (note) will be displayed on the line of the result. Hovering over it with your mouse will show the details.

note3

Clicking on the Edit Note icon (note_edit) will show the note. You can then edit and update the note.

note2

To delete/remove the note, simply delete all of the words and save.


HOWTO: Capture a script using Selenium IDE and import into Cloud Testing

June 9, 2009

These instructions assume you have downloaded and installed the Selenium IDE Add-on for Firefox. For more details see the Selenium HQ website.

Inportant: If you previously had Selenium IDE installed in Firefox 3.0, you will need to un-install and re-install the latest version for it to work with Firefox 3.5.

Step 1.

From within Firefox, choose Tools then Add-Ons, then Selenium IDE

The following pop-up window will be shown:

Note the red ‘record’ button to the top right of the window. This indicates that Selenium IDE is in recording mode, and that all interaction with Firefox will be recorded.

Step 2.

Enter the URL of the script you want to record (http://portal.cloudtesting.com/ in this case).

Step 3.

Paste the same URL into the address bar in Firefox and press enter.

Step 4.

Interact with the website as required. This can include clicking on links, entering text into fields and clicking buttons.

In this example, we will type the username and password, then click the Login button.

The following information will then be captured, and shown in the Selenium IDE window:

Carry on interacting with the website – the commands will be captured as shown.

Note: For those of you who think you’ve spotted a back door into the Cloud Testing portal by using the username and password above, sorry but we’ve changed it. If you would like a Free Trial of the service, one is available on the Cloud Testing website.

Step 5.

Important: When you have finished capturing the script, stop the recorder, by clicking on the red circle towards the top right of the IDE window.
If you forget to stop recording, extra steps will end up being uploaded, which can be removed by editing the script later.

Step 6.

Switch to the Source tab.

Step 7.

Right click on the source, choose ‘Select All’, then select ‘Copy’.

Step 8.

Go to the ‘Add Script’ page in the Settings section of the Cloud Testing Portal.

Step 9.

Enter the name of the script, the hostname of the server, and then paste the commands into the page, before clicking on the ‘Upload’ button.

Step 10.

The script has now been uploaded and imported into the Cloud Testing service, it can now be edited or updated as required.

For more details of the features available once the script has been imported, see the Cloud Testing website.

This is the first in a series of HOWTO articles – check back for more, or sign up for the mailing list at the Cloud Testing website for updates.


Follow

Get every new post delivered to your Inbox.