You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The part of my arachni Login script looks like below (different variations):
begin
browser.image(:id => 'someIdHere').wait_until_present(60)
puts 'User successfully lands on MyWebSite home page with the URL ' + browser.url
rescue
puts 'Unable to reach MyWebSite home page'
exit
end
begin
browser.image(:id => 'someIdHere').wait_until_present(60)
puts 'User successfully lands on MyWebSite home page with the URL ' + browser.url
rescue
puts 'Unable to reach MyWebSite home page'
abort('Aborting the scan as it login script fails')
end
However, when rescue part of the script starts executing, arachni scan never finishes and keeps crawling (probably just home page).
The reason I raised this question is my arachni scan is set up in VSTS. I would like to mark arachni batch job as failed if something gone wrong in the Login script. But, with aforementioned problem, arachni keeps scanning and produces no report at the end, where VSTS thinks that batch task was successful.
Please advise if you have a proper solution on stopping (erroring out) entire arachni batch job from the Login script...
The text was updated successfully, but these errors were encountered:
Hello,
In Ruby one can terminate batch job by simply calling
exit
functionhttps://stackoverflow.com/questions/30337972/how-to-tell-a-ruby-program-to-close-itself
The part of my arachni Login script looks like below (different variations):
However, when rescue part of the script starts executing, arachni scan never finishes and keeps crawling (probably just home page).
The reason I raised this question is my arachni scan is set up in VSTS. I would like to mark arachni batch job as failed if something gone wrong in the Login script. But, with aforementioned problem, arachni keeps scanning and produces no report at the end, where VSTS thinks that batch task was successful.
Please advise if you have a proper solution on stopping (erroring out) entire arachni batch job from the Login script...
The text was updated successfully, but these errors were encountered: