Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

How to do website automation testing using Selenium?

View previous topic View next topic Go down

How to do website automation testing using Selenium?

Post by TheSeleniumGuy on Fri Mar 02, 2012 2:59 am

Hi all,

I am very new to Selenium and currently making my way through the official selenium documentation.

I am not yet much clear about what am I actually supposed to do when I use Selenium for website testing? Suppose if I have been given any particular website, and I have been asked to do automation testing using Selenium, WHAT EXACTLY am I supposed to do with it?

What my understanding is that I am supposed to use the WebDrivers and try to find out the various elements and confirm whether they are present on the website or not? For that I can load any browser driver and by using the WebElement instance need to cross check whether ALL the elements are present on the website or not?

I am not much sure about it as I am very much new to this entire selenium thing. Can anyone of you please tell me what am I supposed to do? Or forward me to any sites or links that can be helpful foe me at the moment to get started with this automation testing using selenium? Rolling Eyes Rolling Eyes

Thanks a lot in advance for all the help that you will provide me.


TheSeleniumGuy

Posts : 5
Join date : 2012-02-28
Location : India

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by ccox on Fri Mar 02, 2012 5:23 am

It sounds like you are new to automation and not just Selenium. Typically to test something you must have a basis to go off of. Documents such as requirements, use cases, test plans, etc. will give you information to build your automation test cases off of. Typically to test a website, you would verify elements are present and that it is actually functional(if need be).

It would be unreasonable for someone to simply ask you to build automation scripts to test a website. You have to know how it is supposed to work to create a script to verify it works that way.


ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by TheSeleniumGuy on Fri Mar 02, 2012 9:28 pm

Thanks a lot for replying ccox. I agree to the fact that I am totally new to the automation testing stuff. But I am slowly trying to figure out various ways of getting to it.

ccox wrote:Typically to test a website, you would verify elements are present and that it is actually functional(if need be).
Yes, I do agree with it and that's what my perception about this task was. I mean, I will be checking that the UI of the website is exactly the same as it was before whenever there is any changes. Which will include any text, image, links or any other data that was present on website before the modifications.

For example say, there are some new modifications to the functionality and now the things will work the other way for the same website. Means there will be either some new things added or old things modified to work in new manner. So being a selenium tester my responsibility would be to make sure that the elements of the website [ that can be plain old UI or internal functionality behind the links] are the same as they were prior to this new release. And this "information" would eventually be my test case or scenario that I would be supposed to test. Please correct me if I am wrong.

So now coming to Selenium, I am expected to use the web driver which means Selenium 2.0, as it is the latest. So by using that I will be launching the browser with my specific website and by using the element locators and other API of the drivers I will be trying to find out whether the things are in place or not. I will be doing this using java, so this java code of mine would be my test script that I will be running against the website to check out the stuff. Is that right?

Please let me know if this is the right way to do the things with Selenium or not? I would really appreciate any help.

TheSeleniumGuy

Posts : 5
Join date : 2012-02-28
Location : India

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by ccox on Fri Mar 02, 2012 10:11 pm

It sounds like you have a pretty good grasp of what you are doing! Very Happy

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by TheSeleniumGuy on Sat Mar 03, 2012 3:33 am

ccox wrote:It sounds like you have a pretty good grasp of what you are doing! Very Happy
Thanks man ccox. Though I haven't done anything considerable yet, but that's my take on this task from a higher level.

So can I consider that I am on the right path about this automation stuff using Selenium? Or still there are some things that you would like me to follow up with?

TheSeleniumGuy

Posts : 5
Join date : 2012-02-28
Location : India

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by zlos7ar on Mon Mar 05, 2012 7:55 pm

I recommend you to build a simple testcase in Selenium IDE to get the idea of automatic testing (for example make a script that logins to your website) then export that test case to java(Selenium IDE have a function to export your tests to many different programing languages) so you can see how your basic code will look in java and from there you can slowly start adding new things to your tests, build a test suite and so on. Also you should know which web browsers you are going to need. For example if its an internal project for your company and you use IE8 you should focus on testing that browser. That is because Selenium uses javascript to execute the tests and every browser handles javascript somewhat differently. That means sometimes you will have to make small changes to make sure your tests run on different browsers.

zlos7ar
Amateur
Amateur

Posts : 41
Join date : 2012-01-13
Age : 28
Location : Germany

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by TheSeleniumGuy on Thu Mar 15, 2012 4:39 am

Thanks zlos7ar, I will surely keep that in mind. And in fact I have started with IDE itself. And now I am planning more and more use of Web drivers as ultimately I will be working on that only I guess as its the latest.

By the way, I have been searching for some good Selenium Book and even on net I found the suggestion to go for "Selenium Simplified". I tried to find out on Google for some free copy of that book. But I just didn't get it. I really searched a lot but no luck.

Can you or anyone else on the forum, point me to the link where I can download "Selenium Simplified by Alan Richardson" for free like PDF or something? Or even if anyone has the soft copy and are willing to share, please do let me know so that I can share my email ID with you guys.

Thanks a lot for your help. Will keep you posted about my progress in between.
Very Happy

TheSeleniumGuy

Posts : 5
Join date : 2012-02-28
Location : India

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by jaz on Wed Jun 27, 2012 7:06 pm

hii...
I wanted to know that how do I automate testing with the help of Selenium? I have a few html5 modules which i ran on the browser, and now I have to automate my tests so that my colleagues who are not aware with selenium can develop the automated tests with just a few clicks.
So please tell me how do i do that ???

jaz
Active particpant
Active particpant

Posts : 10
Join date : 2012-06-27

Back to top Go down

Testing the megento framework using selenium testing tool

Post by suganyaraja on Mon Jul 30, 2012 5:23 pm

Hello everyone,

1)I am new to Selenium I dont know the coding itself is it easy to learn the coding for selenium?

2) Please tell me I want to testing the megento framework using
selenium testing tool for that what are the set up i need to do and how
to run the test pls help me in this i need this help very urgent

3)I am going to do testing megento site with
selenium for that do i need to learn megento code or java code is enough?

suganyaraja

Posts : 4
Join date : 2012-07-27

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by timothyhadl on Wed May 15, 2013 4:15 pm

How does selenium command work? Can anybody please explain it to me, i am very new to this.

http://appliedspeciation.com/Arsenic-Speciation-Analysis.html

timothyhadl

Posts : 2
Join date : 2013-04-12

Back to top Go down

Re: How to do website automation testing using Selenium?

Post by Sponsored content Today at 8:51 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum