Current time: 10-18-2019, 11:07 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run scripted tests in bulk?
07-01-2013, 03:16 PM
Post: #1
How to run scripted tests in bulk?
Is there a way to run the scripted tests in bulk just like for url bulk testing?
Find all posts by this user
Quote this message in a reply
07-02-2013, 10:34 AM
Post: #2
RE: How to run scripted tests in bulk?
You can use a %URL% as a placeholder in the script and it will substitute each URL in the bulk test as it is run. In it's most simple form:

navigate %URL%
Visit this user's website Find all posts by this user
Quote this message in a reply
07-02-2013, 05:07 PM
Post: #3
RE: How to run scripted tests in bulk?
(07-02-2013 10:34 AM)pmeenan Wrote:  You can use a %URL% as a placeholder in the script and it will substitute each URL in the bulk test as it is run. In it's most simple form:

navigate %URL%

Thank you Patrick for your answer!
Actually each of my script might have different steps. And I just find wpt monitor should be able to handle this.
Find all posts by this user
Quote this message in a reply
07-03-2013, 09:53 AM
Post: #4
RE: How to run scripted tests in bulk?
Great. I know there is a way in bulk testing to test a bunch of different scripts as well. Something like:

Code:
script:logdata\t1\nnavigate\twww.yahoo.com

but I can't remember the exact syntax off the top of my head (been ages since I actually used it - I usually find it is easier to just automate the API instead)
Visit this user's website Find all posts by this user
Quote this message in a reply
07-08-2013, 06:00 PM
Post: #5
RE: How to run scripted tests in bulk?
I'm a little bit frustrated with the try on wpt monitor the test result issue on which hasn't been resolved, so I decided to get back on the wpt approach.


Does the alternative "Automate API" option you mentioned above mean the test like below just sending everything by URL? If so, still the same question, how can we batch run different test cases like below example.
http://xxxx/runtest.php?url=http://global.ecco.com&location=Test:Firefox.DSL&runs=2&fvonly=1&script=logdata%091%0AsetEventName%09findStore%0Anavigate%09http%3A%2F%2Fglob​al.ecco.com%2Fen%2Fservice%2Ffind-a-store%0AsetDOMElement%09id=storeSearch%0AsetValue%09id=storeSearch%09Shanghai%0A​logdata%090%0AsetDOMElement%09search%0AexecAndWait%09document.querySelector("button.icon").click();

I can simply put each of these url formatted test cases into an excel and then use other automation tool to send these request one after another, but I just want to see if there's a better and easier OOB method available to achieve this.
Find all posts by this user
Quote this message in a reply
07-08-2013, 10:29 PM
Post: #6
RE: How to run scripted tests in bulk?
I don't think there is a good OOB way to achieve what you are looking for. The built-in bulk support assumes using the same script for different URLs and the API samples pretty much assume the same thing (or a few variations of scripts to be compared to each other). You could use one of the existing samples as a basis to build what you are looking for or you could modify runtest.php to accept scripts in addition to URLs but there's nothing in place right now that does exactly what you're looking for.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)