December 12, 2024

How to setup Qa0

Learn how easy it is to set up Qa0 in your project and start testing

How to setup Qa0

Qa0 is a testing framework that allows you to write integrations tests for your Flutter app in a simple and easy way. In this article, we will show you how to set up Qa0 in your project and start testing.


Step 1: Install Qa0

The first step is to install Qa0 in your project. You can do this by placing the Qa0 client in your project's root directory.


Step 2: Sign in to your organization account

Next, you need to sign in to your organization account. You will be asked to provide your organization's account ID and password as part of the sign-in process.


Step 3: Run the automatic instrumentation process

Once you have signed in, you can run the automatic instrumentation process. This process will automatically instrument your code base to allow Qa0 to run tests on your app. This process annotates all the important UI elements in your app so that Qa0 can identify them when writing tests. This process does NOT change your app behavior in any way, but it does add some extra metadata to your app's code.


OPTIONAL - Step 4: Add keys manually

You can also help Qa0 by adding keys to your widgets. This can be done by developers only, but it is not required in order to use Qa0. If you want to add keys manually, you can do so by setting the key parameter of the widget you want to annotate with a ValueKey containing a name in the following format: "Qa0-nameOfYourWidget". Be careful to not use the same key for different widgets, as this will cause your app to fail in runtime.


Step 5: Write your first test

Now that you have set up Qa0 in your project, you can start writing tests. You can write tests in the Qa0 client by going to the Test Studio screen, entering your prompt, generating the test, and running it.



That's it! You have successfully set up Qa0 in your project and written your first test. You can now write more tests to ensure that your app is working as expected.


If you have any questions or need help with Qa0, you can check the official documentation or contact our support team.