Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We have a webshop and we sell lots of items.
Our checkout process consists of 4 different pages where the user has to input their address, select a delivery method and confirm their order on different pages/urls. Each of those pages relies on communication with the server and lots of javascript / jquery.
Some of our users have reported problems at some parts of those pages. We suspect it could be a combination of OS/browser that can't understand a part of our javascript code.
Is there any way to automate testing of a checkout process of 4 different consecutive pages, each requiring user input?
We would like the testing environment to test on different brosers/browser versions.
We also had a customer recently that had an antivirus program that would change the urls of our js source files, is there any way to capture cases like that by testing?
Sounds like you might use E2E testing, using Protractor/Selenium.
It's basically about writing user behaviour, and the browser driver does it instead of user. You can write what should happen on the page and if any of these conditions is not met, it will be included in the post-test report. You can configure it to use whatever browser driver you like.
I suggest you to take a look at Selenium. The main purpose of it is to automate browsers actions.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Currently we are using browser stack to run our web based automation scripts automated using protractor framework. As browser stack is costly , we are looking for an alternative option for browser stack which supports our UI automation scripts. We are ready to make necessary changes in our set up according to new options.
Can anyone suggest any open source or less costly alternative option for browser stack ? TIA
In terms of pricing, I am doing the same analysis, and there are two paths, either a paid solution/service.
On my shortlist, I had these
Lambdatest
SauceLabs
AWS Device Could Farm
BrowserStack
CrossBrowserTest from SmartBear
I haven't found anything cheaper, that is useful, but could be other have.
Other alternatives are to setup either a local Selenium grid or a Selenium grid on the same infrastructure as your website is running on.
But I would expect that you spend the same cash on maintaining your own Selenium grid, over just having access to one?
This is the costs for the various services with unlimited minutes and one parallel session. (Most have this)
Note: I haven't tried to use TestingBot and Experitest yet.
But think about how many test minutes you need, and how many parallel tests you want running at the same time.
But if you decide to run your own, then look into the costs of other infrastructure costs, such as CI/CI hosting, Production software hosting. (Unless these are internal/hidden costs)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What's the best choice to stress test a node.js powered server? I need to send a lot of single request and measure the delay time and validate the response. If possible I need to export data or generate graphics.
If you're willing to pay a little bit for the service, blitz.io can be a good way to go. Otherwise, apache benchmark is also a nice option, though you'll have to work a little harder for response validation and graphics.
A cluster of JMeter instances would do the trick. JMeter can export all the measurements and you can use Excel^H^H^H^H^Hyour favourite spreadsheet to do the graphics.
Try Vegeta. It focuses on making it easy to achieve a target rate of requests per second. I mean you can test your service's behavior at multiple requests per second. What about your report requirement, here you can also add -output flag which specifies the output file to which the binary results will be written to.
Link on github page.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I would like to make a web scraping application that is able to log in to a website (I was able to do this with twill (python)), and also to be able to execute JavaScript which trigger access to other pages.
I would definitely prefer to use something in python, but I am ready to try something new. I have installed mechanize, watir, Hojocki, etc. but not sure if this really helps.
I'd recommend PhantomJS.
It's a full Webkit browser, but headless and scriptable.
It's ideal for this sort of thing.
I believe there are a few modules (such as Ghost), but I have used Selenium/WebDriver for things like this. It is ostensibly a testing framework, but it provides you with a lot of methods to allow you to interact with the page just as if you had loaded it as a normal user. You also have the benefit of running it so that a browser actually opens and you can watch the code execute (makes debugging easier), or in a 'headless' mode where the code just executes (there are other sites/SO answers with much better explanations than I can give :) ).
That being said, Ghost looks great as well, so try them both and hopefully one will get you what you need!
Also, see Javascript (and HTML rendering) engine without a GUI for automation? for a similar question that may have some additional answers.
I would recommend Octoparse, a free web scraper for Windows.
It's not programmble but it's very easy to use. But there's no Mac version.So...
JavaScript can be handled by Octoparse btw.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
we want to provide an online bookmark service to our customers. Therefor it would be nice to provide also a function to store local bookmarks into our online tool. This shouldn't be done automatically - the user should confirm this action (only in case someone thinks I want to spy users data).
I'm looking for a while now, but I found only that there is no solution, because it's a security risk. Is there a way or already a tool for such a functionality in Javascript?
Regards
This is completely impossible.
You need to write a browser addon.
Is there a way or already a tool for such a functionality in Javascript?
Nope, definitely not. Maybe for browser extensions - if it's possible even for them.
No there isn't any solution to do this via javascript. The only solution I can think of is to use a Java Applet to read the client's computer and look for the bookmark.
Another way is you can ask them to export their favorites to a file and upload to your website.
Prompt the user to upload the bookmarks file: http://productforums.google.com/forum/#!topic/chrome/i1r3CgqvgCI
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am currently working on a site that includes javascript code that we get from several different sources and need to run on the site I maintain. Every once and a while some of this code breaks without our knowing until its too late. Is there a monitoring tool that will crawl our site and look for javascript errors and report them or could this be incorporated into a selenium test somehow?
On the sites I develop, I wrap everything in try ... catch blocks, and if the exceptions I catch cannot be handled, I always generate an AJAX request to a script which emails an error report to the development team with as much information as I can gather.
If the code is code you didn't write yourself and try...catch blocks would be difficult to add, you can use the window.onerror handler instead:
<script type="text/javascript">
window.onerror = function()
{
// Your code to generate an AJAX request to your error report script here
}
</script>
I know this post is old, but recently we've launched a tool that does this :)
It's called ConsoleWatch - https://www.consolewatch.io/
It lets you scan whole websites for JS errors and also schedule repeating scans with reports, so you might find t handy!
It would also be smart to utilize a tool that will catch any JavaScript errors that might happen after production. There're several tools out there but I recommend RootCause because it will allow you to automatically reproduce any user errors.
Disclaimer: I work for RootCause. Our software automatically reproduces JavaScript errors and lets you replay user sessions live in your browser with the click of a button.