How to Use Mockito to Mock a Generic Class
Mockito is a popular Java library that allows you to create mock objects for testing purposes. Mocking is a technique that lets you replace the functionality of an object or class with a simulated version, which can help test how your code interacts with other components. This article from Juan Reyes on Waldo’s blog will explore how to use the Mockito library to mock a generic class in Java.
Getting Started With WebSockets in iOS
8WebSockets are a powerful tool for building real-time applications because they allow for bidirectional communication between the client and server. This article will explore how to use WebSockets in iOS, specifically with the popular networking library Socket.IO. Learn more from Juan Reyes on Waldo’s blog.
Useful Examples of Mobile App Testing With XCTest
XCTest is the default unit testing framework in Xcode and is different than XCUITest, which is used for automation testing. The testers are then responsible for doing manual testing of the whole app to check everything is working as desired. But nowadays automation testing is preferred, as it saves time and effort. Again, Apple has its own framework to do automation testing called XCUITest. More on the difference between XCTest and XCUITest can be found in our earlier post. In this post from Nabendu Biswas on Waldo’s blog, you can learn a little about XCTest.
Working With Legacy Code in Calabash for iOS
Calabash is based on Ruby, and we write test cases using Cucumber. These test cases are written in an English-like language called Gherkin. The approach we use to write these test cases is called BDD (behavioral-driven development). The tester thinks of different behaviors the app should follow and writes test cases according to them, like entering a username and password and then trying to log in. In this post from Nabendu Biswas on Waldo’s blog, you can learn to set up Calabash iOS on a Mac, test using Cucumber in an existing iOS app, and look into some alternatives to Calabash and compare them.
Using xcodebuild to Build from the Command Line
DevOps practices generally require the build command to be given from the command line. And most of the time, these build commands are contained within a script and executed automatically. But how do we build from the command line? This is where xcodebuild comes to our rescue. In this post from Nabendu Biswas on Waldo’s blog, we’ll learn what xcodebuild is.
Protractor Vs. Selenium: a Detailed Look at How They Compare
Testing is usually carried out by software testing teams in two different ways: manual testing and automated testing. As the names suggest, manual testing is where a person checks the entire application for defects and determines whether it’s working as desired. In automated testing, different tools are used to test the software. This post from Gourav Bais on Testim’s blog will focus on two automated testing tools/frameworks: Protractor and Selenium.