# Test Recorder and Toolbar

DevFeed: [Test Recorder and Toolbar](<https://devfeed.tech/articles/test-recorder-and-toolbar-19550.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/test-recorder-toolbar/>)

Author: Shai Almog

Published: 2017-05-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [commands](<https://devfeed.tech/tags/commands.md>), [features](<https://devfeed.tech/tags/features.md>), [run](<https://devfeed.tech/tags/run.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>), [toolbar](<https://devfeed.tech/tags/toolbar.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This article explains updates to Codename One's test recorder, including improved handling of toolbar commands and "wait for title" behavior. It also reviews how to record tests, generate assertions, save the test class, and run the resulting tests.

## Source excerpt

One of the key takeaways I have from the bootcamp is the need to work on TDD in Codename One. We had a test framework and test recording framework for years, but it wasn't picked up by many developers and as such it stagnated. As we launched the Toolbar API we didn't even check that framework and some basic stuff stopped working. This was something several attendants in the bootcamp mentioned as important as well as a couple of enterprise customers so I knew we had to revisit this feature. With this week's update commands should be handled correctly even with a toolbar and features such as "wait for title" should work for a form with a Toolbar. I'd still recommend using setName() for any component you want to test as this will make the generated code far clearer to the human observer when you record a test.