Wednesday, 19 September 2018

Creating Selenium Automation tests faster using Selenium Builder


This blog will teach you how to create Selenium automation tests faster using Selenium Builder.
After my research i found out there are multiple recorders available to create selenium scripts faster.But these recorders will provide you script with absolute the x-paths and are ineffective. I suggest replace those x-paths with relative x-paths of your own.
Lets see how we can use Selenium Builder
Selenium Builder comes as Fire Fox plugin only with older versions of Fire fox (Not compatible with Firefox quantum and higher versions)
Features:
1.Selenium Builder allows you to record the script.
2.Edit recorded scripts.
3.Play back Selenium 2 recorded tests from within Firefox.
4.You can save the tests as JSON files or export them to a wide range of language bindings.
Adding as Firefox Plugin:
Search for Selenium Builder and Click Add to Firefox button.


Opening Selenium Builder From Firefox:
Restart Firefox and Katalon Recorder will be available as Menu option in Tools --> Web Developer -->Launch Selenium Builder.



Selenium Builder Recorder:
Click Launch Selenium Builder option and Recorder opens up.



While Recording:
Provide base URL and click Record Button.You can Check or Uncheck option for Delete all cookies for this domain.



Adding Verification:
To add verification click on Record a verification button and click on the link or element .This will add a assert in the recorded script
 

Once finished recording click Stop recording Button.
Exporting recorded test:
To Export : Go to File --> Export option . Choose export format menu gets displayed with available export options.
Choose the desired option and save the recorded script by providing a name.




Exported code snippet:
Open the saved file and the code looks like below.



We can run the recorded script using Run menu option.
For more info : http://seleniumbuilder.github.io/se-builder/



Wednesday, 29 August 2018

Creating Selenium Automation tests faster using Katalon Recorder

his blog will teach you how to create Selenium automation tests faster using Katalon Recorder.
Once your basic Selenium framework is ready all you want to do is create your functional tests in a fast pace to achieve your automation coverage fast. But it takes time to create Object Repository of elements in each page of your application and also creating reusable methods in each page.
This is where Katalon Recorder comes in to picture where you can do both faster. Every one using Selenium knows Selenium IDE recorder which was a Firefox plugin supported in older versions of Firefox. Katalon Recorder looks similar to Selenium IDE Firefox plugin.
Main Features:
  1. Powerful IDE to record and run web UI tests
  2. Can edit your recorded tests
  3. Can export tests in Java, C#, Ruby, Python, Groovy
  4. Plugin available on Chrome and Firefox
  5. Uses Selenium 3 Core engine
Adding as Firefox Plugin:
Search for Katalon Recorder and Click Add to Firefox button. Restart Firefox and Katalon Recorder will be available as an add-on.

Click on The K icon it opens the recorder

Press the Record button and start performing an action on the browser and you’ll see the recorder showing the actions in the form of code

Click Stop once you’re done with the test case and you can export it using the export button. It gives us multiple options choose required one and save it in your local.

We can run the recorded test using the Play button.


I exported the recorder test with option Java (WebDriver + TestNG)

Adding as Firefox Plugin:
Search for Katalon Recorder plugin and Click ADD TO CHROME button.

Recording and export is similar to Firefox Katalon Recorder

Thursday, 15 February 2018

ITC infotech Selenium Interview Questions


ITC infotech

1. Access modifiers
2. Challenges faced while automation
3. Why IE driver is slow
4. How can you increase speed of execution in IE browser
5. Differance between extent reports and testng report
6. Sorting an array programme
7. Finally
8. tricky questions about try catch
9. Listeners used in our project
10.Frame work explanation

Saturday, 10 February 2018

Ellucian Written Test for Automation Testers

Written test @ Ellucian

1. Constructor over rididng program out put
2. Another arithematic error expecting out put from catch and finally block
3. Selenium code to take screenshot
4. Selenium code to go to page click on a link accept alert and close
5. Selenium code to go to page click on a link swotch to new window get title close that and switch to main window and close
6. remove duplicate numbers from an array
7. Compare two arrays and get common members count and display them
8. swapping numbers without temp variable
9. get the number of links in a page
10.reverse string with and with out string buffer