Functional Testing, Functional Tests, interview, Manual Testing, Mobile Testing, Selenium, Test Cases, Test Steps, Testing, Web Testing

Functional test cases of shopping cart.

Here are some areas which we can focus on while testing shopping cart:-

SingleProductAddToCart
1. Select any product.
2. Select Add to Cart icon.

1. Verify that the correct PDP page is shown with all the necessary
links and information.
2. Verify that product should be successfully added to cart and in the Cart icon, 1 should be displayed.

Continue reading “Functional test cases of shopping cart.”

Advertisements
adb, Agile Testing, android, Automation, Functional Testing, Java, Mobile Testing

ADB for mobile quality analysts.

As we (QA) are growing more towards automation, we have now started exploring tools which developers are using for their development. Not just for developing our own testing framework but also for capturing logs, checking code smells, etc we can use adb.

And I think this is very cool and good to start exploring in this direction, as learning is never ending and shall never stop. Mobile testing is very dynamic and in this blog I will share some experience over adb for android testing and debugging.
Continue reading “ADB for mobile quality analysts.”

Automation, Automation Framework, Browser, Functional Testing, Headless browser, Selenium, System Testing, Testing, Web Automation, Web Testing

How to run Selenium tests in headless mode.

Quick, pace, speed are some synonyms which describes us. We , humans, wants pace in each and every act of ours. We want to speed up things as much as we can do. So we try experimenting things as in we try to search for betterment of work, as we are growing in automating things, replacing human acts to programs or machinery.

If I talk about selenium, then the major time which is spent in framework is at execution. And if I go one step more deeper then the initial point where the execution takes time is when it is trying to open browser be it Chrome, IE or any other. So just to wipe out this pain point there is one such browser which works in headless mode, and is compatible with selenium as well.

Continue reading “How to run Selenium tests in headless mode.”

Automation, Functional Testing, Java, Selenium, Selenium Errors

java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1

java.lang.UnsupportedClassVersionError: com/xtr/parallel/QuickTestWinFF :Unsupported major.minor version 51.0 at
 java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at
 java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at
 java.net.URLClassLoader.access$000(URLClassLoader.java:58) at
 java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native
 Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
 java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at
 java.lang.ClassLoader.loadClass(ClassLoader.java:247) at
 org.testng.internal.ClassHelper.forName(ClassHelper.java:96) at
 org.testng.xml.XmlClass.loadClass(XmlClass.java:78) at org.testng.xml.XmlClass.init(XmlClass.java:73) at
 org.testng.xml.XmlClass.(XmlClass.java:59) at
 org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:543) at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at
 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:17
 9) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:788) at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScanneImpl.java:1343) at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756) at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at  com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at
 javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at
 org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:17) at
 org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:10) at org.testng.xml.Parser.parse(Parser.java:172) at
 org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:311) at
 org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:88) at
 org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at
 org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

Continue reading “java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1”

Automation, Automation Framework, BDD, Behaviour Driven Development, eclipse, Functional Testing, Java, Testing

java.lang.UnsupportedClassVersionError: com/CucumberOptions/RunCukeTest : Unsupported major.minor version 51.0

Hi all, I am trying to run an existing project of cucumber in my existing eclipse and faced an issue. In this piece of write-up I will be sharing the resolution of the Error I got while executing the project.
Continue reading “java.lang.UnsupportedClassVersionError: com/CucumberOptions/RunCukeTest : Unsupported major.minor version 51.0”

DataBase Testing, Functional Testing, Functional Tests, Load Tests, Manual Testing, Performance Tests, Portability Tests, Quality Analyst, Stress Tests, System Testing, Test Cases, Test Steps, Testing, Usability Tests

How to test ‘elevators’?

Best way to write test case is to categorize them such that it can be applied to the given situation. For instance, if I take an example of ‘Lift aka Elevators‘ then what all tests we can actually perform on lift could be like this:
Continue reading “How to test ‘elevators’?”

Functional Testing, Functional Tests, Manual Testing, Performance Tests, Portability Tests, Quality Analyst, Services Testing, Stress Tests, System Testing, Test Cases, Testing, Uncategorized, Usability Tests

How to test ‘Fan’?

If we want to examine any tester then the best way to know him/her is to ask him real time questions over real time examples. Just like the day-to-day objects which we used to work on and see on daily basis. So lets take an instance of ‘Fan’ , and this you see, you use multiple times a day.
Continue reading “How to test ‘Fan’?”

Automation, Functional Testing, Services Testing, SoapUI, Web Automation, Web Services, Web Testing

Adding ‘Events’ in SoapUI projects

SoapUi provides a wide range of features, and via these capabilities we can not only test our web-services as a whole but also we can implement muliple functions to test an application’s services.
Today I will discuss ‘Events’ in SoapUi so let’s get started.

Continue reading “Adding ‘Events’ in SoapUI projects”

Agile Testing, Automation, Automation Framework, Functional Testing, Quality Analyst, Services Testing, SoapUI, System Testing, Testing, Web Automation

SoapUI Tutorial Part 1 : A world-class tour to SoapUI PRO.

SoapUi PRO is a tool where in you just need to click on the actions available to you and you can make your imagination comes true.Services testing was never so easy before the make-believe fantancy of SoapUI PRO creators. I want to thank them before giving you a brief of the tool cum weapon as they say.

Why SoapUI?
SoapUi is a very powerfully built tool which is used for Services testing.
Continue reading “SoapUI Tutorial Part 1 : A world-class tour to SoapUI PRO.”

Automation, Automation Framework, Functional Testing, Quality Analyst, Services Testing, SoapUI, System Testing, Testing, Web Automation, Web Testing

Best suited tool for web services testing : SoapUI.

Recently I started working on services based project and in this post I will share how I learnt all about SOA(Service bases architecture) along with the way we should begin with.
In today’s life we have several things ,some which are important and we are ignorant about it. Some are not so important but we think about them all the time ,through out our day. And rest lies in between these two categories. Now the point here, which I would like to make is that , the driving factors of all the happenings is Service ,I am referring only Web here. Though ,in general the answer would be ‘Money’ without any doubt.
Continue reading “Best suited tool for web services testing : SoapUI.”

Agile Testing, Automation, Functional Testing, Selenium Builder, Services Testing, System Testing, Testing, Web Automation, Web Testing

Selenium Builder – Exporting and execution

In continuation with my last blog I will here share a more advanced capability of Selenium Builder.
Now as we are done with the set up we can talk one step ahead. Lets start with an example :
I have opened a website in firefox and I want to automate some actions on this page . Lets say :

  1.  I want to open the url (https://khyatisehgal.wordpress.com/).
  2. I need to check a blog on this website , the very first one .
  3. I want to see the author’s about me column.

And that’s all.

What I will do for this is ,

  1. I will open the firefox
  2. I will launch Selenium Builder.
  3. I will start doing the above steps .

Continue reading “Selenium Builder – Exporting and execution”

Agile Testing, Automation, Design patterns, Functional Testing, Java, Page Object Model, Quality Analyst, Selenium, Testing, Web Automation, Web Testing

Why to apply Page Object Model in automation frameworks.

Today I will share how and why we can apply design pattern concepts while creating a new framework. Lets try and understand why we need any design pattern in our project. No doubt we can make a framework be it automation or any feature specific project but if we talk about a big Enterprise edition project then we have to think of factors like optimal solutions, performance, maintainability etc. Similarly we can directly use the play-records plugin of Selenium and start applying further concepts over it. Then why people are not utilizing it ? Moreover inclination is more towards Selenium webdriver whole-some project. Let us see what all factors attract a user to use Selenium Webdriver instead of the fact that Selenium IDE can generate automation code in any of your favorite language like Java, etc

  1. Code is rigid.
  2. You can make classes out of the code but not any framework.
  3. You have to certainly perform the record and play option again and again if any test case fail.
  4. This idea will definitely give you a piece of code but not a project on which you can rely upon.

Lets understand this with a picture, it would be difficult for this guy to find a way. But it would be much easier if something like this might happen to him.

Make sense, yeah…err…no!! Ok. What I mean is if we can specify directly that what path to take and when, then it might help the reader to understand better, as simple as this. Design patterns also helps us in doing the same stuff for our code, so that we can arrange our code snippets, classes, packages, etc in such a manner that it would help in making code more readable, understandable and manageable.

Advantages of page object pattern:

  1. Makes tests more readable and robust.
  2. Bring down the duplication of code.
  3. Improves the maintainability of tests, remarkably when there is frequent change in the AUT. (Useful in Agile methodology based projects).
  4. Simple and clear tests.
  5. Good support of tests, because everything is stored in one place.
  6. Easy creation of new tests. In fact, tests can be created by a person not knowing the features of automation tools.
  7. The UI changes, the fix need only be applied in one place.
  8. Code re-use: Able to use the same page object in a variety of tests cases.

In the coming blog I will be discussing how we can apply this Page Object Concept in Selenium scripts.

Agile Testing, Automation, Functional Testing, Selenium, Selenium Builder, System Testing, Testing, Web Automation, Web Testing

A tour to Selenium Builder – Locators finding and warming up!

Today I am going to share my experience about a new tool in market. This is a tool which will actually help testers all over the world in automation User Interface or I would say Graphical User Interface .

This tool is still in development and source code is available on ‘git-hub’ . This is launched by sauce labs as an add-on to Firefox.

It works like Selenium IDE but has additional features which are AWESOME !! This helps in

  • finding locators,
  • writing scripts in any language (by exporting option ) ,
  • you can save test suite ,
  • you can directly run you test cases on sauce labs,
  • you can edit/customize your locators,etc

For quick start all you need to do is to go to selenium builder official website from your Firefox browser and click on the install button highlighted in the below picture.  And that is all about the installation , Yipeeiii !!

Continue reading “A tour to Selenium Builder – Locators finding and warming up!”

Agile Testing, Functional Testing

Agile process -Part -II .

In continuation to my last post where I discussed what are the roles of the teams in Agile process , here I am going to discuss how agile helps in software development . Also how to actually start with agile software development.

The process focuses that there should be continuous interaction between team members. There are several terms which one should know before getting the knowledge of process.

Sprint  This is an iteration where in all development , testing , discussions happens . It is of fixed time like 1 week , 2 weeks, 3weeks, etc . It has specific goal to achieve that depends on the scope of sprint.

Back log  This has all the stories that are to be included in the future sprints or releases.

backlog
Continue reading “Agile process -Part -II .”

Agile Testing, Automation, BDD, Behaviour Driven Development, Fintesse, Fitnium, Functional Testing, Quality Analyst, System Testing, Testing, Web Automation, Web Testing

Selenium flavors and their architectural differences.

I have seen many people asking a repetitive question in interviews if they see Selenium written on any Curriculum Vitae of a Test Engineer. Though I believe theoretical and conceptual knowledge is equally important as hand-on experience. As a part of hiring panel I have observed this as a pet question of our hiring team : ‘How about the architectural difference between Selenium versions.’ Of-course , once they are done with questions like ‘What you know all about selenium’ ?
Selenium generally comes in four different flavours :
Selenium IDE , Selenium RC , Selenium Grid and Selenium Webdriver.
I will be sharing the best answer I got and the research which I did so as to understand the architecture of selenium.
Continue reading “Selenium flavors and their architectural differences.”