web-testing

Anti forgery token and web testing

末鹿安然 提交于 2021-02-06 11:53:36
问题 I am trying to do a web test in VS2012 for an MVC site. One of the scenarios is to login and go through a list of products, select the one you want and follow through to the purchase page. Problem is that when the web test is run, I get an error about the anti forgery token and that it does not match. How on earth is it possible to do the testing with the anti forgery token? The user must login - there will be thousands of users for the load test (eventually) but need to make it work for 1

Is it possible to use the TestCafe .meta object to skip tests running from the cli

ぃ、小莉子 提交于 2021-01-27 12:11:55
问题 I'm using TestCafe to run my integration tests. I know it has the test.skip function, which is great for when I'm testing locally and want to skip a set of tests I don't need/want to run... but I was wondering if there was a way to run ALL TESTS except --test-meta environmentSpecific=true etc? We have a number of different environments, and I'm looking for a simple way to skip tests via the CLI, depending on the environment we're targeting for the build. 回答1: Yes, you can do it using the

Can I use pagespeed insights for my local host website or offline?

折月煮酒 提交于 2020-12-19 15:11:50
问题 Can I use pagespeed insights for my localhost website or offline? 回答1: Yes. Use the "Lighthouse" tab from your google chrome dev tools. This is a great starter tutorial on how to do that: https://www.youtube.com/watch?v=5fLW5Q5ODiE Edit: user izogfif pointed out the "Audit" tab was replaced by "Lighthouse". 回答2: An alternative way to run Lighthouse Although this is an old question there is an alternative way to run Lighthouse (the engine behind Page Speed Insights) locally that may be useful

Can I use pagespeed insights for my local host website or offline?

我们两清 提交于 2020-12-19 15:03:19
问题 Can I use pagespeed insights for my localhost website or offline? 回答1: Yes. Use the "Lighthouse" tab from your google chrome dev tools. This is a great starter tutorial on how to do that: https://www.youtube.com/watch?v=5fLW5Q5ODiE Edit: user izogfif pointed out the "Audit" tab was replaced by "Lighthouse". 回答2: An alternative way to run Lighthouse Although this is an old question there is an alternative way to run Lighthouse (the engine behind Page Speed Insights) locally that may be useful

Testcafe live not running

牧云@^-^@ 提交于 2020-06-15 09:25:51
问题 I am on OsX, using nvm, node 10.15.3. Testscafe (not live) works fine, but I was trying to follow the instructions at Testcafe-live At the step where it explains how to install it locally If you have installed testcafe-live locally to your project, add an npm script to package.json to run tests: it refers to a package.json file, I added the entry under the scripts section "scripts": { "test": "eslint ./**/*.js", "testcafe-live": "testcafe-live chrome tests/" }, but when I run npm run testcafe