Getting Started
This Getting Started guide targets software developers who would like to generate persona-based questions for an application.
There are several steps.
- Get your Python virtual environment set up and add the necessary Python libraries. We use Conda in this example.
- Get your OpenAI API Key and put it in your .zshrc file so it is set up when you start a shell
- Test your API Key
- For a new application, generate the personas
- For each Persona, generate the questions
Conda Setup
We recommend you set up a named virtual environment with Conda or a Python VENV.
Here are the steps with Conda
1 2 3 | |
You will need an OpenAI API Key
Store the key in your ~/.zshrc file
1 2 | |
Test Your Environment Variable
1 | |
Run the following program Python program in the src directory that tests your OpenAI API Key works.
1 | |
Generate Personas from the Application Description
Edit the src/05-get-personas-from-app-desc.py Python program to add a description. Use the following Python program:
1 | |
That will generate a list of personas. You will use this list for the next section. Make sure you review the list and remove any personas that are not appropriate such as security and performance roles.
Generate Questions for Each Persona
Take the description and list of personas and copy them into
the appropriate areas of the 06-get-questions-for-personas.py program.
1 | |
TODO
- Add a feature to take the application description as an input parameter in a file or the section within a markdown documents after the ## Application Description section header.
- Take the output of the first Python program and use it as the input to the second.