09 Jul Automated Website testing with Ghost Inspector
What is Ghost Inspector?
Ghost Inspector is an automated browser testing tool for continuously checking sites. A considerable lot of those sites run on WordPress. After bunches of interest from clients, Justin Klemm, developer of ghost inspector,developed a plugin to show Ghost Inspector test results directly inside WordPress administrator board. The plugin empowers you to show the most recent test results for a single suite on the dashboard of any self-hosted WordPress installation. Continue pursuing to figure out how to install and set up the plugin.
Ghost Inspector makes it easy to guarantee your site is working appropriately with no programming or testing experience required. Regardless of whether your group is composed of engineers, manual testers or beginners in testing, our instinctive set of devices will permit you to achieve your objectives.
Ghost Inspector is an automated site testing and observing services that checks for issues with your site or application. It does tasks in a browser, a similar way a client would, to guarantee that everything is working appropriately.
To begin, first sign up for a free preliminary account. To make tests, you can install a test recorder in your browser or utilize a hosted test editor. Tests are run from cloud administration. You can set tests to run consistently on a schedule, setup notifications, and control different parts of your testing.
It has the following features:
- Test Recorder & Codeless Editor
- Video & Screenshot Comparison
- Multiple Browsers & Screen Sizes
- API & Third Party Integrations
- Advanced Test Scheduling
- Parallel Testing by Default
How to use Ghost Inspector for your test suite
- Go to this link and create ghost inspector account
- Search for Chrome extension on your chrome browser and open chrome extension.
- Now in chrome extension search for Ghost Inspector and click on add to chrome, as shown in the figure below.
- Now click on this icon
- Now enter your credentials and login to the ghost inspector account.
- After login select “create new test” and start recording.
- Open any site to perform actions and all the actions will record in Ghost Inspector test suits.
- Click on finish recording to close the session or click on mark assertions if you want to add any assertion in your test case.
- When you click on finish recording, it will show you a button “View your Test” to view your recorded actions and tests. Click on this button to view your Test Result.
What are Assertions in a test case?
An assertion is a boolean expression at a particular point in a program which will be true except if there is a bug in the program. A test assertion is characterized as an expression, which exemplifies some testable logic indicated about an objective under test.
On the off chance that an assertion is failing because of either reason, the result of the equivalent can be extreme. An Assertion could raise to a hindrance which may bring about stopping testing for an entire day. A few conditions that we wish to test for may be reasonably simple, yet it is exceptionally hard to check in practice.
How to use Assertions in Ghost Inspector?
- Click on the Assertion button when your test is already started.
- Now click on the element on which you want to add the assertion.
- Now click on the Ghost Inspector icon from extensions and continue your recording by clicking on the “record operations” button
How to View your recorded Test in Ghost inspector?
- Login to Ghost Inspector with the help of the link below :
Ghost Inspector Login
- After login you can find your created suite in the dashboard. Click on your suite to start executing your recorded test cases.
- You can run your test suite by clicking on the “Run Test” button.
- To check the test steps click on the name of your Test.
- You can also check on which step your test is failing.
Some Great Features Ghost Inspector Provides
- Effortlessly record your test in browser:
Ghost Inspector gives a test recorder device to both Chrome and Firefox that permits you to record activities and assertions directly in your browser. In case you’re acquainted with Selenium IDE, this is comparative yet considerably more smoothed out. When you’re finished recording a test, it’s spared to cloud administration and quickly processed. By then, you can view, edit and automate the test inside your account.
- Build & Manage Tests with Visual Editor:
Rather than coding your own experiments, you can construct them rapidly and effectively utilizing instinctive interface. Run your tests promptly as you’re building them. You can likewise record tests at first, at that point edit them utilizing this interface a short time later.
- Observe the functionality of your site/app:
With this you can keep check on your site’s functionalities for issues by creating tests and running them on a schedule (Ghost Inspector gives you the ability to continually run your test on a schedule using a number of intervals that can be selected for running your test or suite in a recurring manner.) or when deploying changes through API. Executing a test is what might be compared to a client doing out similar activities in their browser. You’ll have the option to see precisely which steps passed and which failed. Ghost Inspector gives you full video of the test run, console output from the browser, screen captures, and even a visual correlation of any progressions that have happened since the last test run. All test outcomes are put away and can be seen in your account.
- Customize test setting:
Ghost Inspector gives a huge amount of valuable settings for your tests. These can be set exclusively for tests and most can be defaulted at the suite level. Here are some:
- Browser engine choices
- HTTP authentication
- Custom user agent string
- Custom HTTP headers
- Screen resolution
- Screenshot comparison
- Various notifications
- Service integrations
- Receive Notifications & Setup Integrations:
Ghost Inspector gives various implicit alternatives and third party integration for notifying you about test outcomes. Notifications can be controlled on the test, suite, and association levels giving you both expansive and fine-grained power over your settings. Aside from email rundowns and webhook notifications, we additionally bolster numerous third party administrators including:
- Travis CI
- Circle ci
- Azure DevOps