Speeding up UI Browser tests with Robot Framework
Speeding up UI Browser tests with Robot Framework My current AWS demo project is a Cat Voting Booth. It uses SocketIO/WebSockets, so in addition to server-side unit tests Ive built a number of browser-level tests, using Robot Framework. One feature people dont realize is that Robot can actually be quite speedy. Opening and closing a browser window is very slow, on the order of 1-2 seconds. Depending on the application, this can be done once, saving 1-2 seconds for *every* test! For my Very Important Cat Voting Booth, this is the case. Heres the magic bit: *** Settings *** Resource resource.robot Test Setup Reset Votes Suite Setup Open Browser To Voting Page Suite Teardown Close All Browsers *** Test Cases *** Valid Page Votes Not Available Register Up Vote Vote Up Element Text Should Be vote-count-up 1 ...