Slides from "Polyglot Automation" talk given at QA Fest conference.
There are many good programming languages. But test automation is preety simple so the power of language will not matter. But choosing language does matter for effective automation. How to choose the language for Web UI automation? Why Web UI automation is easy? How to choose easyy tools for your automation? How to learn new language and why? We will try to answer all these questions in this talk.
14. Full coverage for TodoMVC:
Without “backend” preconditions: 24s
With “backend” preconditions: 16s
=> optimised for 30%
15. A remark
TodoMVC is very simple app with small lightweight
“preconditions” in tests
Real app will usually have much more “hardweight”
preconditions
So the optimisation may be much bigger
28. public class Tasks {
...
public static void visit() {
open("https://todomvc4tasj.herokuapp.com/");
}
public static void filterActive(){
$(By.linkText("Active")).click();
}
public static void filterCompleted(){
$(By.linkText("Completed")).click();
}
public static void add(String... taskTexts) {
for(String text: taskTexts){
$("#new-todo").setValue(text).pressEnter();
}
}
...
}
29. public static class Tasks
{
...
public static void Visit()
{
Open ("https://todomvc4tasj.herokuapp.com/");
}
public static void FilterActive ()
{
S (By.LinkText ("Active")).Click ();
}
public static void FilterCompleted ()
{
S (By.LinkText ("Completed")).Click ();
}
public static void Add(params string[] taskTexts)
{
foreach (var text in taskTexts)
{
S ("#new-todo").SetValue (text).PressEnter ();
}
}
...
}