-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide some doc for pytest usage #31
Comments
Hey @jdesmarais-jive thanks for the poke. I believe @vodik actually has a full I know we had talked about that project getting moved here. So maybe as part of that @vodik can spin up some 👍 |
Yeah, no docs yet, as I ripped basically ripped it out of our internal repository and tossed it on github with the plan of eventually making time to clean it up and document it. There are a few issues with it as its currently written however:
And while I very much need to get around to doing that, my current short term focus as work is building a pure python sipp replacement, so I might not get around to it for a bit |
Thanks for your quick answer. With a bit a digging it is still usable though. |
@jdesmarais-jive iirc with @vodik's plugin you use the You also usually need to set the proxy addr you're testing either using Hope that helps :) |
I roll out my own way around wrapping pysipp in pytest. Still here was really helping in implementing auto-discovery test. Thank you all |
No worries. And if you're feeling bold, keep an eye on aiosip. I'm currently rewritting all our SIPp scripts to pure python. I've done two projects with that library thus far, and while its still super alpha, its easier to debug and work with than SIPp. |
@vodik you have my star |
I don't if I should open another issue for that. I'm trying to override a uac parameter (in my specific case: auth_password) and I'm not sure what I'm doing wrong. scenario files:
It is not working (the password stay to the clientdefaults["auth_password"] if I did this in pysipp_conf.py:
What is working though is to override the clientdefaults directly, but I don't like this solution since i may need different password per uac:
It there any hook that i'm not aware of that can override UserAgent parameter before running the test? Another solution that I have though of was using Scenario.from_agents with some agents that I have created myself. Thanks for your help so far you have been of great help. |
Hey @jdesmarais-jive this could very well be a bug. You're first example should definitely work but I'd need to see the entire script you're using to launch the scenario. If you can make a separate issue that would be great so that this issue doen't get lost and can be closed with a PR if need be. Also if you find that it is a bug it'd be great if you could write a test to verify it. |
The main wiki page is ok to see usage of scenario and uac and uas, but it seems that there is no documentation for integration with pytest (example: auto-discovery of scenario directory, how to override defaults command line value for uas and uac).
pysipp is great work and seems very usable though. Thanks for it.
The text was updated successfully, but these errors were encountered: