-
Notifications
You must be signed in to change notification settings - Fork 215
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
HIL testing? #1089
Comments
I don't see a direct way to specify that a phase should be repeated until |
Hey, thanks for the response. Yeah, this kind of functionality might be out of the design goals of the library, however, something along the lines of #: runs for 60 secods, with a .5 sleep in between the runs
@htf.PhaseOptions(looping=True, interval=.5, duration=60)
def polling_test():
pass
def main():
test = htf.Test(
#: this behaviour should spawn a threading.Thread instead,
#: and skip right into the next phase
polling_test,
some_other_phase
)
test.execute()
if __name__ == '__main__':
main() would be extremely useful. |
Agreed it would be useful! One question I have is how do you make a phase run for exactly the amount of time specified "from outside the phase" i.e. from the framework. E.g. in your example, is I suppose your use case could be met by adding a |
In my concrete example, I imagined the So, I would suppose it would run something along the lines of:
edit: the question was initially about the current functionality of the library, but seeing as such stuff isn't supported just yet, would we be able to achieve such feats sooner or later? thanks! |
if anyone is wondering - you should look into the "core.monitors" file. |
how would i go about making a test that goes on for n amount of time? i need to
does this library has this functionality? thanks
The text was updated successfully, but these errors were encountered: