Lurker News

Comments (106) 29 threads

Earlier comments
chrisweekly#
Cool. Related: the venerable WPT (https://webpagetest.org) is well-documented, and it's straightforward to set up a private instance (eg via AWS AMI) that supports scripting and a robust set of testing tools.
losvedir1 reply#
This is neat. I was just looking for something like this the other day.

Does it support loops? I don't see any example like that. Basically I wanted to load a search results page and check something about each of the results on the page.

hliyan#
Our current thinking is to not provide branching mechanisms (loops, conditionals) by design. Both to keep the language simple, but more importantly, to force script writers to create one test per each scenario. If you need an if statement, that's probably an indicate you need two tests.

For your use case, you'll need to write a macro and then call it the number of times you need.

  how to check for $something in search results for $thing
    ...
  end

  check for "foo" in "bar"
  check for "foo2" in "bar"
  check for "foo3" in "bar"
That works?
socialdemocrat#
I think people often fail to grasp why natural language works for humans. It is because we can have a conversation back and forth and supplement with other things like illustrations or drawings.

That I can explain task to a programmer in natural language and that he can implement it, is only possible because he can ask questions back and gradually build up a mental model.
These natural language solutions often lack this feedback loop mechanism.
When you don’t have feedback you are better off with a more precise and more mathematical language.

Load more comments