ancha pull writes a test your workspace saved from a production trace into scenes/from-traces/<name>/, where ancha run finds it. Name a trace that has no saved test yet and ancha pull saves one first. With --answer, it saves a new version with your answers to the test’s questions, then writes that.
Sign in with
ancha login first, or set ANCHA_SERVER_URL and ANCHA_API_KEY.
Files
When your
ancha.yaml lists scenes: globs that do not include the new test, ancha pull prints a note with the glob to add.
Answers
ancha traces show lists a test’s questions, each with how to answer it:
A value can also be the JSON the console sends, such as
'{"floor":140,"recovery":10}'. Answers add to the test’s earlier answers; <question>=default drops one. Questions with no --answer, such as issues your agent never read, are answered in scene.yaml.
Pulling again
Pull a test again to get a newer version. Checks you added toscene.yaml by hand carry over to the new version. Any other change to scene.yaml would be lost, so ancha pull stops before it saves or writes anything and says so; move the change into a check of your own, or pass --force to overwrite the file. ancha pull tells the two apart with the # ancha pull: line at the top of scene.yaml, so keep that line.