Testing Multiple Languages And the Navigation Menu

webshipcowebshipco
1 min read

Testing Multiple Languages And the Navigation Menu

In this blog, we will demonstrate automated functional acceptance testing for select languages on a website and the top menu (not all items) using the webship-js tool. For example, we will show testing on the World Health Organization site: https://www.who.int/.

The Gherkin scripts for testing Multiple Languages

Feature: Check the language
  As a nonymouse user
  I want to be able to visit the home page
  So that I know that the site is working
  Scenario: Check language
    Given I am on the homepage
     When I select "العربية" from "language-selector"
     Then I should see "حملات منظمة الصحة العالمية"
     When I select "中文" from "language-selector"
     Then I should see "世卫组织宣传活动"
     When I select "Français" from "language-selector"
     Then I should see "Campagnes mondiales de santé publique de l'OMS"
     When I select "Русский" from "language-selector"
     Then I should see "Глобальные кампании ВОЗ по охране здоровья"
     When I select "Español" from "language-selector"
     Then I should see "Campañas para mejorar la salud"
     When I select "English" from "language-selector"
     Then I should see "About us"

Watch the recorded video of the robot while running the automated functional testing feature and display the results in the form of a report

https://www.youtube.com/watch?v=BOyi065jV80&t=43s

Learn more about Step Definitions in Webship-js

Visit the documentation site:- https://webship.co/docs

1
Subscribe to my newsletter

Read articles from webshipco directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

webshipco
webshipco

Love to help in speeding up the work of having Automated Functional Acceptance Testing for products to ship websites in a swift way.