Selenium – My Learning’s – Part TWO

This time I will show you my learning’s of SELENESE – Selenium Commands

I recorded the script for creating a WordPress blog.

Steps are as follows:
1. Open WordPress website (https://en.wordpress.com/signup/)
2. Fill in all the required fields
3. Submit

Result:
Should send an email with the activation link.

So, here is the script displayed after recording the above steps:


Before playing the above script, I cross verified and observed the following issues:
* Not recorded the Step for “Username”
* Not recorded the Step for “E-mail Address”

Because, “Username” is the value which it has taken automatically from the Blog name while I am recording. Also the “E-mail Address”, it is not recording because when we type some text it searches in their Database and throws an error message to enter the valid email address, this is stopping Selenium to record the step. (As shown in the screenshot)

How I made my script work?

After exploring I learned about “type” and “typeAndWait” command. They are something similar like “click” and “clickAndWait”

From the initial script, I understood that each field in the page has an id and that should be inserted to make my script work.

Command Target Value
type id=user_name sudhamshu2016

 

 

“Username”– I added the command as above

 

Okay, you might get confused of how and from where to get id. Right click you mouse on placing the cursor on the field you are searching for. You will get some options as like shown below:

Did the same for “E-mail Address”

Command Target Value
type id=user_email ratnadeepu568912@gmail.com

 

 

 

And my script looked like this after playing.

Still exploring a lots of SELENSE commands, if you start learning Selenium you might know more about SELENSE, because your context may vary from mine.

While I was recording the script for Gmail Registration, I found some issues with the Hidden drop-down values and CAPTCHA. After exploring a lot I found that there is no way to record CAPTCHA with Selenium IDE. Just to add a “pause” command and type in manually.

But I still did not have a solution of how to record the script for Hidden drop-down values (Still exploring).

Some other commands which I tried to insert after exploring:

  1. I want to check the Title of the Webpage before my test runs, so I used “assertTitle”.
  2. Again I want to check the Title of the Webpage before my test runs, so I used “verifyTitle

How they both are different?
I observed that when I add “verifyTitle” my script is running without failing at that step and showing me the results at end and “assertTitle” is halting the script where it went wrong

When you think in different ways of automating, you might be using more commands. Write the steps before you automate, it helps you automate better.

P.S:  Dear reader if you have a solution to record the Hidden drop-down values, please share it with us.

Happy Exploring – Happy Testing

Regards,
Sudhamshu

Advertisements

Selenium – My Learning’s – Part ONE

Selenium is a tool which I’m using for automating the web applications. For example my testing has to create several users with different data, every time it takes a few minutes for creating a User manually; hence I automate this process to test. (It helps me to test faster)

Selenium Integrated Development Environment (aka) Selenium IDE – It is an add-on for Mozilla Firefox (I am using 1.7.2 version of Selenium IDE). Download it and restart your Firefox browser to start using.

My first script for record and play:

  1. Open Google.co.in
  2. Search for “Sudhamshu Ailineni”
  3. Click on the first link from the search results

The IDE window looks like this after recording the above steps:
The Red icon in the below screenshot is used for recording the script and the blue arrow icon is used for playing the script (Do you want me to put screenshots for these?)

I have ran the script and got the following results

Error – Link not found.
Why it is throwing this error?
It was fine while recording; now I started my exploration on this and expected that it should be clickAndWait but not click.

In my script, the fourth command

Command Target Value
click id=gbqfb

Here “id=gbqfb” is searching for “Sudhamshu Ailineni”, but before the page loads it is again searching for the first link available in the page.
So, I changed my script as follows:

I changed the command from “click” to “clickAndWait” and found that it is getting timed out after 30000ms. Because, two “clickAndWait” commands one by one.

So, I changed the command back to “click” and added a “pause” command (As shown in the screenshot below) and it got worked.

It was my first learning about Selenium. Now, after recording this scenario I am asserting and verifying with more commands, I will share them in the next post.

Hope, my learning might be a help to the beginners who are planning to learn Selenium.

Further Reading:

Selenium – Web Browser Automation
Selenium IDE Plugins
Downloads – Selenium
Selenium (software) – Wikipedia, the free encyclopedia
Selenium tutorials for beginners/newbie
Selenium Tutorial for Beginner/Tips for Experts
Selenium Tutorial
Selenium Documentation

Happy Learning – Happy Testing

Thanks,
Sudhamshu

Pearls of the Software Testing – I

Friends, it is my contentment to write this blog post. This post says the whole thing about Testing Contests and contestants

Recently I have not bumped into such a magnificent and astonishing contest @99tests.com. Hale and hearty competition between the contestants and their bugs.

This post is to all who says “Testing is a monotones job”; see the bugs and fervor by the testers.

I joined a contest to test a Web Application and report the bugs. I was the 29th tester to join the competition.  Later on the count increased to 40…..

As like all the competitions this time I did not do the identical thing. Started to view the bugs raised by other testers.

The contest started with the first bug which says as: Spelling mistake in a URL – It is spelled as “Singnin.php” in the URL

I have not considered of this Test idea when I was testing the Web Applications. Even it is not a Sev1 bug but it showed the significance of the spell mistakes

And also the contest ended with a grammatical mistake bug…..

In between the first and the last bug, I come across wonderful test ideas which produced 284 bugs in a span of three days by more than 18 testers.

From the recent days, I have been conversing with some high-quality and excited testers all over the GLOBE. And in this contest I enjoyed being one of the contestants.

Why this is a grand contest and what energized me?
Why I did not get these ideas and also what I would made if I get these ideas?

Maximum ticket quantity: not validating for 4 digit number – Good bug by Deepak. It is not a critical bug but I loved his way of reporting it. What if I had got this idea?

I would have been used Web developer add on to check whether the server side validations have been done or not. Like increasing the field length and adding higher values for ticket quantity.

Upload a contact Excel file permanently failed – Bug by Vinothkumar B. Loved his investigation skills and the idea behind this bug.
I would have been tested with other file formats and checked the performance and behavior.

Script Error on the ‘Jobs’ page – I noted down this test idea of enabling the script errors in Internet Explorer browser. I will be exploring more on what type of script errors it is populating and the reason behind it. Thanks Krishnaveni

 Some more bugs from which I have learnt test ideas:

 Missing blinking cursor on many pages: Usability test idea by Ajay
Email Address Validation wrong in Organizer registration page: Email format standards by Vinothkumar B. But I did not understand why this marked as LOW
XSS Attack possible through events: Security testing idea by Aslam Shaikh

I have no idea of marking which the best bug is; I suspect all are most valuable bugs in their perspectives. All the bugs made a value to the Customer.

Few nuggets of the competition:

Jahira Banu, I am observing her from a year and I always wanted to be glad about her service to the Testing World. She energetically participates in Chennai Testing Groups with her posts. She has filed 62 bugs in this competition and made a remarkable support to the Web application and 99tests.com.

Always I feel massive cheerful when I want to say about Krishnaveni. As the world already knows about her testing skills and enthusiasm. It is always been a great time to work with her.

One more newbie who started his profession a few months back, Deepak. Participating actively and filing very practical and vital bugs.

Aslam Shaikh, I am seeing this folk for the first time in 99tests. But made a remarkable gesture by filing some of the security bugs.

There is a lot to say about the testers who are participating actively and filing the bugs which are making the customers work easy.

I thank Praveen Singh for giving me this occasion. And congrats to the winners and wishes to all the participants.

I wish I get more chances to participate in these contests to enrich my skills… Thanks to all who supported me and who energized me….

Thanks,
Sudhamshu

Where I would be if I managed my TIME?

 

A few years reverse when I was in 10th standard…. I was very poor at Sin, Cos, Cosec etc. I got not as much of as half of the pass marks in Trigonometry (18/50)

Be unsure…. I got 80 out of 100 in the final exam. I haven’t intended accordingly to get those marks. All is what I attained because the *practice* I did.

Now when I suppose why I was not able to score 100/100, it is because I have not accustomed and worked for that reason with the TIME

My Conclusion: Practice + Time Management = Remarkable results

A few months back when I was testing an application at 99tests.com, I was at the very last position. This was been my opening contest for this community.

Marvel…. After a week I was in the top 5. Here the *hard work* played a significant role.
Why I was not at the top 1? Another time I missed out to supervise my time accordingly

My Conclusion: Hard Work + Time Management = Exceptional results
Where am now – I am going ahead in performing testing with a lot of hard work, but this time I am preparing and maintaining my time for that reason.

Meeting more individuals from the testing groups, discussing with them and planning my schedule accordingly to learn new skills – day by day

I am helping my team mates and friends in Testing via a group – lucky to say that am the moderator for that group – Hyderabad Testers Group

A man who dares to waste one hour of life has not discovered the value of life. – Charles Darwin.


P.S: Do you think that you have wasted your 5 minutes in reading my management skills? Oh yes, please do add the comments?

Want to say *No*? The question which is picked as the title for this post – is for you my dear friends. Please do add your valuable comments……

 

Thanks in Advance!!

Warm Regards,
Sudhamshu Ailineni ||
My blog: Sane Tester || Twitter: sudhamshu4u
Email :sudhamshu.rao@gmail.com || Contact: +918686272711

 

*WOW* congrats to Hyderabad Testers Group for the First Half CenturyJ, We are *50* and we are growing as a group. If you are a *Tester* and if you want to contribute/share/express your ideas and experiences why can’t you also join us. Here is the link – http://groups.google.com/group/hyderabadtesters

 

 

Mug, Jug & Testing

———————————————–Beginning of the Story————————————————————–

Mug, Jug & Testing

Mug….: A mug is a sturdily built type of cup often used for drinking hot beverages, such as coffee, tea, or hot chocolate. Mugs, by definition, have handles and often hold a larger amount of fluid than other types of cup. Usually a mug holds approximately 12 fluid ounces (350 ml) of liquid; double a tea cup.

Jug….: Jug (container), a vessel for liquids

How Mug and Jug are connected to Testing?

Here the Mug and Jug are not the identical which you find in the Wikipedia definitions (as mentioned above)

Mug and Jug were the twins, born a long back. They both encompass the resemblances in various aspects like looks, behavior, attitude, performance and a many more.

After completion of their Graduation, they joined an Organization as Testers. In the initial stages they both looked same in the performance. Later Jug got to do extremely well in something because of the environment around him. Mug remained same

After 4 years……………..

Mug is still working in the same Organization with the unchanged skills.
Jug changed the company, got promoted as Senior Tester, won more than a few online testing competitions and became a identified tester in his ambiances.

Why Mug is in the same stage?

Mug: “Mug” – as mentioned above it can hold only a limited amount of liquid. What happens if it tries to handle more amount of liquid?

Mug hasn’t asked this question himself

But Jug got a chance to deepen the skills, chance to meet up a lot of people all over the world, chance to contribute in testing exercises.

———————————————End of the Story————————————————————————

Friends think of the Mug and Jug, how many of you are still the Mugs and how many of you altered as Jugs

Sudhamshu Ailineni was a Mug when he started the career 4 years back. He remained as Mug till two years from his joining as a Tester.

Now he is self-important to say that he has transformed as Jug

My Experiences:

1. When I started blogging, I thought of about only “Google adsense”, plagiarized many articles from the fellow testers to my blog. It went up well till 3 or 4 months of my journey as a blogger.

A mail from Pradeep Soundararajan regarding his posts which were in my blog, changed my attitude of *Copy* and *Paste* – Thanks Pradeep

2. Write the Test Cases from the Requirements; execute them and raise the defects. This is what the Testing is, which I thought until I participated in the Weekend Testing Session. With Ajay Balamurugadas, Sharath Byregowda, Parimala Shankaraiah, I realized that I am in the false state of Testing. – Thanks to you all

3.  Santhosh Shivanand Tuppad, Dhansekar S – Always I used to get back to these guys whenever I feel inconvenient / I have some problem/doubt. They are open to me whenever I ping them or call them. – Thanks to you

4.  Standing and collecting a gift/prize/achievement in front of 200+ audience/spectators was a great feeling for me. This made me to repeat it every time. Thanks to Bug debug team, Bharath and Praveen of 99tests.com

5. Practicing and learning a lot of various tools which I can use for ease of my work. Frequently blogging my experiences

6.  I habituated to read at least one or two lessons from “Lessons Learned from Software Testing”

A lot more experiences in transforming as a Jug. I never originated such a grand humans in other communities, if you want to get help/support/clarifications; they (We) all are available whenever you have problems/queries

Some points for Newbies and Mugs from my end:

  1. Try to spend time with the seniors in your field. Learn something from them
  2. Participate in the Meet Ups organized by the Testers in your city. Or if interested can travel to some other cities
  3. Read the Testing books like “Lessons learned in Software Testing” and “ Testing Computer Software”
  4. Read the blogs of different Testers world wide
  5. Participate in the Weekend Testing and Week Night Testing sessions
  6. Participate in the Online Testing Competitions like 99tests.com and uTest.com
  7. Spend a hour or two other than your professional testing and practice testing
  8. Participate in the Software Testing Conferences. They give you a chance to meet a lot of testers and to learn a lot from them

Hopefully, I expect one or two Mugs to be converted as Jugs after reading a post by a JUG.

* Disclaimer:  The Mug and Jug are not projected personally; my state of sensitivity is not to hurt any individual. If I do say, please regret me for not converting yourself in to Jug.

Thanks for reading!!

Sudhamshu Ailineni
blog: https://testingdisciple.wordpress.com || twitter: sudhamshu4u || skype: sudhamshu.rao|| Gmail: sudhamshu.rao

Where I could be without these?

Hi Folks,

This is the instance to let you recognize of about a number of tools which made my job easy. I mechanize my work to save the time and load by using these tools.

Without these tools where I could be? I am appreciative to each and every individual who developed these tools.

A momentary look of the tools:

Sno Tool Where you get? Why I use?

01 Orangoo http://orangoo.com/spellcheck Spell Checker

 

02 Spell Checker http://www.spellchecker.net/spellcheck Spell Checker

 

03 Juicy Studio http://juicystudio.com/services/image.php Image Analyzer

 

04 WAVE http://wave.webaim.org Web Accessibility Evaluation Tool

 

05 Etre http://www.etre.com/tools/colourblindsimulator Color Blindness Simulator

 

06 Online Utility http://www.online-utility.org/english/readability_test_and_improve.jsp Improve Readability

 

07 Duplicate String Generator http://tuppad.com/blog/2010/12/03/developing-test-data-generators Data Generator

 

08 Bug Advocacy http://www.amibug.com/iamabug/p29.html Bug Advocacy

 

09 Astronomy http://antwrp.gsfc.nasa.gov/apod/ Astronomy Pictures

 

10 Fake Name Generator http://www.fakenamegenerator.com Fake Name Generator

 

11 Daily Testing Tip http://www.dailytestingtip.com/ Daily Testing Tip

 

12 Digital Inspiration http://spellist.com/ Web Spell Checker

 

13 Generate Data http://www.generatedata.com Data Generator

 

14 QA Manager http://sourceforge.net/projects/qamanager QA Manager

 

15 Bugzilla http://www.bugzilla.org Defect Tracking Tool

 

16 Access Me https://addons.mozilla.org/en-US/firefox/addon/7595 Access-Me is a Firefox extension used to test for Access vulnerabilities.

 

17 SQL Inject Me https://addons.mozilla.org/en-US/firefox/addon/7597 SQL Inject-Me is Firefox Extension used to test for SQL Injection vulnerabilities

 

18 XSS Me https://addons.mozilla.org/en-US/firefox/addon/7598 XSS-Me is the Exploit-Me tool used to test for reflected XSS vulnerabilities

 

19 Java Console https://addons.mozilla.org/en-US/firefox/addon/5403 The Java Console enables you to monitor status and debug running applets and Java Web start application that use Sun Java technology

 

20 Web Developer https://addons.mozilla.org/en-US/firefox/addon/60 The Web Developer extension adds various web developer tools to a browser

 

21 Firebug https://addons.mozilla.org/en-US/firefox/addon/1843 You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page

 

22 HTTP Watch https://addons.mozilla.org/en-US/firefox/addon/49856 It provides millisecond accurate timings and real-time page level time charts and many more

 

23 Tamper Data https://addons.mozilla.org/en-US/firefox/addon/966 Tamperdata is used to view and modify HTTP/HTTPS headers and post parameters

 

24 Live HTTP headers https://addons.mozilla.org/en-US/firefox/addon/3829 Is used to view HTTP headers of a page and while browsing

 

25 Cookie Editor https://addons.mozilla.org/en-US/firefox/addon/573 Cookie Editor that allows you add and edit “session” and saved

 

26 Selenium IDE http://seleniumhq.org/projects/ide Regression Automation Tool

 

27 Sahi http://sahi.co.in/w Web Automation Tool

 

28 All Pairs http://www.satisfice.com/tools.shtml All pairs is a tool of James Bach,  that will find a reasonably small set of test cases to satisfy that coverage standard

 

29 Perl Clip http://www.satisfice.com/tools.shtml Data Generator by James Bach

 

30 Log Watch http://www.satisfice.com/tools.shtml This is a simple tool from James Bach, that watches a streaming text file, such as a server log file, and plays sounds when certain strings appear

 

31 Total Validator http://www.totalvalidator.com Total Validator is a free one-stop all-in-one Validator comprising a HTML Validator, an accessibility Validator, a spelling Validator, a broken links Validator, and the ability to take screenshots with different browsers to see what your web pages really look like

 

32 DB Sanity http://databene.org/dbsanity.html DB Sanity performs checks on a database for verifying data consistency and correctness of application deployments or production data

 

33 Maveryx http://maveryx.sourceforge.net Maveryx is a new automation tool for functional and regression testing of Java GUI–based applications
34 Testers Desk http://www.testersdesk.com/ Test Data Generator
35 Watir http://watir.com/ Regression Testing Tool



Thanks for your time in spending to read my post. Please do let me know the tools you use to test better.

Thank You!!

Sudhamshu Ailineni ||My blog: Sane Tester || Twitter: sudhamshu4u
Email: sudhamshu.rao@gmail.com