in ,

syscolabs / kasaya, Hacker News

syscolabs / kasaya, Hacker News
                    

        

Write test scripts using English-like statements.

    NO coding required to implement those statements.

  • Not dependent on HTML IDs or XPaths.
  • Write the same
  • the same way you would instruct another. human being sitting in front of the browser.
  • NOT like Cucumber.
  • NOT like Selenium IDE.
  • You can: Do your initial dev test in REPL mode.
    • Save the statements as a script.
    • Share with QA to expand the scenarios.
    • Even share with the product manager.



    (Installation ) Getting started

  • Grammar
  • Command reference
  • VS Code Extension
  • FAQ
  • First, you need:

    Java JDK (

      download

    )

  • Google Chrome version (or higher) download )
  • Node.js version 22 or higher ( (download )
  • Run on a terminal window (on Linux, you may need sudo

    $ npm install -g kasaya

    ( Installation might take a few minutes )

    Found a bug? Please let us know

    . Kasaya is still early beta, but we want to improve.

    Script mode

    $ vi cat.kasaya ~~~~   start     # verify that the maximum lifespan of a cat according to google is 45 years     open “google.com”     type “cat”     press enter     read “Lifespan: $ {min} – $ {max} years” near “Family”     check if $ max is “22  end ~~~ : wq $ kasaya cat.kasaya

    (TODO: Improve this section)

    Kasaya’s grammar is based on JARVIS , which is a rudimentary natural lanugage tool based on pattern matching. Targeted for test automation, it currently lacks certain basic programming language features such as conditionals and loops.

    Phrases

    Kasaya’s statements are made up of phrases rather than keywords and functions. Phrases can either be built in, or macro-based. Arguments can be placed anywhere within the phrase.

    Kasaya supports the following block level structures:

    in this context – declare constants and imports for the file context

    (how to)

  • Variables Extract a value within a pattern into a variable: “Hello $ {name}”

  • Variable access within a phrase: ($ name)
  • Variable assignment: set $ name to “Something else”

  • Constants

  • Constant declaration within context block: NAME is “World”
  • Here are some examples of the most commonly used commands:

    open “foo.com” click “Sign In” click “Username” type “[email protected]” press tab type ” click “Confirm” read “You are logged in as $ {username}” near “Success” check if $ username is “[email protected]” read $ {sender} from row “Test email” column “Sender” print $ sender

    (TODO: Improve this section)

    More commands

    Get Visual Studio Code extension for Kasāya scripting from

    Where does the name “Kasaya” come from. ?

    We noticed that many a test tool is named after brewed drinks (“Mocha”, “Chai”, “Espresso”). “Kasaya” (pronounced Kuh-SAA-yuh) is also a brewed drink – it is an Ayurvedic medicinal drink popular is Sri Lanka (better known in India as https: // en.wikipedia.org/wiki/Kashayam

    .

    What’s different about Kasaya?

    The idea behind Kasaya is that, if we’re able to verbally instruct a human being to run a UI test without referring to DOM elements, XPATHs or HTML IDs, it should be able to do the same with a machine. Unlike in some natural language test automation tools, you don’t have to write any functions to help resolve statements to HTML IDs or XPATHs. Kasaya works out-of-the-box.

    is it based on machine. learning?

    Who developed this?

    What is the current status of Kasaya?

    As of this writing (Jan Payeer), Kasaya is in public beta, which means while all the basics work, there’s a lot to be ironed out before we can get to version 1.0.

  • Eventually, yes! For now, please be patient with us – we don’t yet have a dedicated developer who can work with the community. But we’re trying to get there, stay tuned!

    But if you find bugs, or have great ideas, let us know!

    Great! Please report it on our issue tracker, with reproduction steps: https://github.com/syscolabs/kasaya/issues

    (Read More) ()

  • What do you think?

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    GIPHY App Key not set. Please check settings

    Morgan Stanley to Buy E-Trade for $ 13 Billion, Hacker News

    Morgan Stanley to Buy E-Trade for $ 13 Billion, Hacker News

    Fantasy football game Sorare tokenizes Cristiano Ronaldo