Scala

How to Capture screenshot of failed test cases in Selenium using scala.

Reading Time: 2 minutes We write the selenium script for for the all test cases, some time its success and some time it failed. so better is to take the screen shot of failed test cases. Automation provide the feature to take the screen shot of failed test cases. by this feature we get the exact idea where is our script failed. In selenium script is failed in different Continue Reading

Messages and internationalization in Play 2.4.x

Reading Time: 3 minutes In this blog we would discuss about Messages and internationalization in Play Framework which would drive us through the implementation and testing of the Play MessagesAPI. Messages and internationalization Play supports Internationalization (i18n) out of the box by leveraging the underlying internationalization support. With Play you are able to customize the text that appears in a view based on the user’s Locale. Specifying languages supported Continue Reading

Generate the Advance level of Test Report of Selenium with Image using Scala

Reading Time: 2 minutes Generating the test report of test cases is the important part of selenium tool. When we write the test cases in selenium and execute the these test cases we always find the pass/fail result. so if we want to generate the report of these test cases in html format ,we can use the Extent Report .we will do just add the jar file of extent Continue Reading

Extract Text from PDF file using Selenium Webdriver in Scala

Reading Time: < 1 minute If we want to verify PDF content during the testing  or you want to test the PDF file in scala then you have to follow these code because selenium webdriver does not provide the direct method to extract the text from PDF. First of all we have to add dependency for pdfbox in build.sbt libraryDependencies ++=  Seq( jdbc, ws, cache, “org.apache.pdfbox” % “pdfbox” % “1.8.2” Continue Reading

Couchbase : Making views via script file automatially without using GUI.

Reading Time: 2 minutes The problem that we faced is that we have to make views manually from the GUI of the couchbase, but it was quite a cumbersome task, so this blog is about how to make views automatically. In this blog we’ll learn how to create a script of curl commands and just run that script for making views and the  views  will automatically get created on Continue Reading

Couchbase : How to access and change the document of size more than 2.5Kb.

Reading Time: < 1 minute We faced a situation were we have to firstly see the data and then change it accordingly in couchbase, but the GUI of couchbase doesn’t allows us to see the data of size more than 2.5kb and forget about changing, So there is a quick hack of how you can actually change the data without using the GUI and just by making a curl request: Continue Reading