[Http-webtest-general] Re: Making test loopable
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-09-05 12:31:34
|
>>>>> On 03 Sep 2002 17:52:22 -0700, Paul Hamingson <Paul.Hamingson@Ticketmaster.com> said: PH> Ilya, Hi Paul, PH> I am working on a problem that you may have already given some thought PH> to. I'm trying to come up with a plugin that loops through a series of PH> pages that are templated, testing each to see if it meets the PH> qualifications and if so, rewritting the URL to get the next. An example PH> would be a search engine result, where the number of iterations are PH> unknown going into the test. PH> I have been able to mangle some code to get the looping to happen, but I PH> get hung up on how to integrate the test results so that they report the PH> correct URL for each one and get loaded on the stack in the correct PH> order ( right now I am getting the outer test first, then the one from PH> the loop in the reverse order.) PH> Right now my code is in an embarrassing state with print statements PH> everywhere, so if you are would like me to show you what I mean, I will PH> clean it up before I let it air in public. Not sure what you are trying to do without seeing the code. If you are trying to add new tests dynamically then it is not what HTTP::WebTest is supposed to handle. Yet it should be possible to do but anyway I think it is wrong approach. If you want the other way of running individual tests you can run them manually via method run_test(). This method runs individual test (opposed to running whole test sequence with run_tests()). In this case you have full control on forming test queue. Anyway if you need more specific advice show your code. -- Ilya Martynov (http://martynov.org/) |