dtmilano / CulebraTester2-public

CulebraTester: Snaky Android Testing
Apache License 2.0
139 stars 29 forks source link

How to get the code generator #9

Closed AnunayaThakureb closed 2 years ago

AnunayaThakureb commented 2 years ago

When I start the server and go to the local host

image

when go to help it says

image

How to get the code generator?

anunay1 commented 2 years ago

@dtmilano Can you please help?

szymondziedziel commented 2 years ago

I remember that I had the same problem someday.

When I hit http://localhost:9987 I get same thing as you on the first screen When I hit http://localhost:9987/help I get same thing as you shown on the second screen

When I hit http://localhost:9987/v2/uiDevice/dumpWindowHierarchy?format=xml I get dumped hierarchy in xml. I remember that I had problem with missing v2 in URL When I hit http://localhost:9987/v2/uiDevice/screenshot I get screenshot from device

Be aware that I have different port than you

Edit: But this is probably not the answer to the question. I am not sure what code generator exactly means

anunay1 commented 2 years ago

Thanks @szymondziedziel for the response, but what I am looking for is how to get this window: image

dtmilano commented 2 years ago

@anunay1 the screenshot is from a discontinued product and it's no longer available. There will be a replacement in the future and a preview is in this video

AnunayaThakureb commented 2 years ago

Thanks @dtmilano for the response. Any plans when can we have the future replacement.

dtmilano commented 2 years ago

@AnunayaThakureb culebra can still generate python code that's compatible with CulebraTester2-public if you choose the right option. This is a working example: https://stackoverflow.com/questions/72352682/adb-force-real-touch/72370929#72370929

The main difference of the new tool (the one from the video) is that it can also generate other languages (Kotlin, Java, javascript/typescript, etc.) and it's web-based instead of Tkinter.

If you have more questions or encounter some problem with culebra don't hesitate to open an issue here or ask at StackOverflow.

anunay1 commented 2 years ago

Thanks @dtmilano for the response and excellent support. Any plans by when you can provide the web based interface, I am support to test it.