web-testing

Visual studio Web Performance tests - OAuth 2.0

人走茶凉 提交于 2019-12-11 17:14:52
问题 I am trying to create the Web Performance tests for an app that is using Identity Server 3. I can't figure out how to simulate login and get token. For example, I am using myapp.com and identity server is hosted on identity.com . All my endpoints in myapp.com/api are secured and require Bearer token. identity.com can provide me token in exchange for a username and password. identity.com will redirect me to a myapp.com/tokenRedirect?token=*** . How can I catch the token and use it as an

how to improve website loading time improvement which approach is best?

大兔子大兔子 提交于 2019-12-11 13:55:54
问题 today I was checking for the loading time of the website. I used webtestpage.org to see which resource takes how much time. I have attached the spanshot for the result. webpagetest image for homepage webpagetest image for perl editor it takes much time to load so help me to improve my site performance here is links which i cheked in webpagetest.org 1st link 2nd link help me and give suggestions what i have do to minimize website loading time 回答1: try below, use gooogle pagespeed utility to

Simulating a response for an ajax call that a web page makes (web-testing)

不想你离开。 提交于 2019-12-11 06:56:37
问题 How can I test that a web app successfully falls back from one faulty back-end API to a secondary legacy API service? Could Firebug or Chrome, or Fiddler do it? How can I setup my client to return error responses for ajax calls to a certain URL pattern? Using HTTPS. I don't have control over the server-side. I want to err just certain ajax calls the remaining should work the same (pulling the network plug is not an option). 回答1: Yes, Fiddler can do this easily. In Fiddler, click the

Visual Studio Load Test redirect URL from Siteminder

六月ゝ 毕业季﹏ 提交于 2019-12-11 01:14:23
问题 I have a security application called Siteminder. It creates unique URLS for every authentication. HTTPS://SITE/idp/**RANDOMURLSTRING**/resumeSAML20/idp/startSSO.ping How can i capture the Unique URL and have the test continue to login. A webtest assumes the next URL in the process. It does not support[Or I don't know how] a unique redirect to a random URL. Does anyone know of a way to handle this case? EDIT: My Solution -- Replace the SessionID with {{SessionID}} in all the URLS and use this

TestCafe - The browser always starts in clean slate between the tests. How to override this so that browser remembers cache, user settings and storage

醉酒当歌 提交于 2019-12-10 21:44:22
问题 The browser between the Tests is always open in a clean slate. The Login is remembered in my application as Authentication persists but as the browser is opened in clean slate always, I have to perform Login in Before hook of all Fixtures. Is there some way I can open browser so that user settings, cache, local and session storage are remembered? 回答1: TestCafe doesn't offer a way to store the page state between tests and encourages writing independent tests. However, Roles API may meet some

OnePlus 3 & Oneplus 5 viewport size for chrome Emulated Devices

喜欢而已 提交于 2019-12-10 14:09:51
问题 I wanted to add OnePlus 3 and OnePlus 5 as custom devices in the emulated devices list of Google Chrome. Please provide the viewport size so that I can test my website with it. Example for pixel 2 display dimentions Thanks in Advance 回答1: I was searching for the same thing and I found this: https://www.mydevice.io/ OnePlus 5: 455x809 , pixel ratio 2.375 , user agent Mozilla/5.0 (Linux; Android 8.1.0; Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile

Selenium locator for <label for=“x”>

混江龙づ霸主 提交于 2019-12-10 01:47:45
问题 With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something like this <label for="ctl00_content_loginForm_ctl01_username">Username</label>: <input type="text" id="ctl00_content_loginForm_ctl01_username" /> I don't want to

How to select Chrome extensions to enable when using Selenium [duplicate]

∥☆過路亽.° 提交于 2019-12-07 05:53:57
问题 This question already has answers here : Using Extensions with Selenium (Python) (2 answers) Closed 4 years ago . I am using Selenium web driver to develop an automated test using Chrome as my browser. I am using Python for this. I have an extension on my Chrome browser that I would like enabled when Selenium opens Chrome. The problem is that when Selenium opens Chrome all the extensions are disabled by default. How do I enable all or a certain extension on the Chrome browser when Selenium

I am trying to open Jmeter by the batch file but it gives me a Windows error

别来无恙 提交于 2019-12-06 20:50:54
问题 Here is the related error its showing: java.exe is not a recognized file as an internal or external command, operable or external command errorlevel=9009 回答1: i was getting the same error on WIndows 8.1(64 bit) and checked java path but it was ok so i just run my jmeter.bat with Run as Administrator and it worked for me 回答2: Many operating systems have an environment variable such as PATH that contains a list of directories (or folders) to be searched when looking for a command to execute.

Why isn't there a headless BDD testing engine like ruby's capybara for java?

狂风中的少年 提交于 2019-12-06 02:51:55
Why isn't there a java version of ruby's capaybara ( https://github.com/jnicklas/capybara ) that would work with tomcat or something? I know we have selenium but it is very slow and it requires a browser to fireup. Is there a technical reason for this? Or it does exist? I'm hoping there is something to speed of browser integration testing for java, spring mvc application. Perhaps HtmlUnit is an option that works for you 来源: https://stackoverflow.com/questions/13312671/why-isnt-there-a-headless-bdd-testing-engine-like-rubys-capybara-for-java