function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vishalavishala 

Pointers for Automated testing

Hi All,

 

Have anyone used any automation tool for running the testscripts of CustomApp (Sites) which is developed.

Please provide me some pointers for achieving the above.

 

Thanks,

Vishala.



 

bob_buzzardbob_buzzard

Are you looking to run your unit tests in an unattended fashion, or are you looking to actually navigate around the site that you have built?

 

If the former, you can achieve this through a combination of cruise control and the force.com migration tool :

 

http://bobbuzzard.blogspot.com/2011/02/scheduled-testing-with-cruise-control.html

 

If the latter, I've had success using Selenium to record and playback scripts in the browser.  There are other tools out there as well, but they tend to be paid (e.g. HP winrunner).

 

vishalavishala

Hi bob,

 

Thank you very much for the reply and guidance you have provided

My actual requirement is to test site navigation which involves executing around 400 manual testcases. I am looking forward to automate it.

Could you please guide me to any helpful document/guide on the internet, which explains in detail about how to use Selenium tool for testing custom app of salesforce.

 

 

 

Thanks,

Vishala.

bob_buzzardbob_buzzard

Here's the link to the Selenium home page - there's lots of information there!

vishalavishala

Bob,

 

I am not able to see the link, can you kindly post it once.

 

Thanks,

Vishala.

bob_buzzardbob_buzzard

Hah!  Not sure what happened there:

 

http://seleniumhq.org/

vishalavishala

I successfully installed the Selenium IDE into the firefox and tried creating a test case. :)

It is working fine till somepoint.

It is not able to record click of a custom button on Visualforce page.

Please guide me where to check the steps got recorded, so that I can edit the steps to include the click of button.

if it is something related to Olat Map file, I could not get that user-extensions.js file from the link they mentioned.

If not Olat Map file, what is the required thing to change the test case steps.

 

Thanks,

Vishala.

bob_buzzardbob_buzzard

You should just be able to edit the test case from the Selenium IDE.

vishalavishala

When I clicked on edit i found the command line for the button.

click link=Find Partner, but this is not getting executed.

and its showing the status as failed=false.

any inputs on how can I try executing the last step clicking on the button.

 

Thanks,

Vishala.

bob_buzzardbob_buzzard

Have you tried changing the speed of execution or adding a delay? 

vishalavishala

wow, got it working :)

I changed the speed to slow and its working.

Can we use this to run more than one test case in test suite,

and verify the results at later point of time,

like can we save the last browser window of each testcase.

 

Thanks,

Vishala.

 

bob_buzzardbob_buzzard

I don't know if you can save the browser window.  You can check that certain elements have particular values.  

 

It can run test suites and you can run it unattended.  Plenty of detail at Selenium HQ.