performance-testing

X-RequestDigest: Getting error while running recorded web test of sharepoint page

三世轮回 提交于 2019-12-20 07:46:23
问题 I have recorded and replayed my sharepoint webtest successfully but after a week or two, I get '403 FORBIDDEN' error when I replay it in Visual Studio. I understand that X-RequestDigest has expired certificate/token details and needs to be updated for every run in my request. However, I'm unable to find preceding X-RequestDigest header value in my recorded web test. I'm able to extract from response header but I need to bind the value to request prior to response? Can someone give me a code

Web performance testing with datasource in vs 2012

╄→гoц情女王★ 提交于 2019-12-20 05:57:32
问题 I'm having some issues with my web performance test that I created in Visual Studio 2012. I've created a test to go through our order system, but on the first run of the test it has errors on the page where you select orders. If I run that same test again it seems to work. Since I am using a data source containing usernames and passwords, I only have one performance test and it runs once for each user in the data source. When it runs it passes the first test, but each additional user causes

javax.net.ssl.SSLException in jMeter

为君一笑 提交于 2019-12-20 04:53:33
问题 I am testing some functionality on server. It was working fine till yesterday. Today they have enabled ssl to server (i.e, From http to https). Now when I am running my test plans I'm getting the following error. How can I resolve this issue. Though I am changing the protocol value to https in my request I'm getting the following error, javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)

javax.net.ssl.SSLException in jMeter

久未见 提交于 2019-12-20 04:53:06
问题 I am testing some functionality on server. It was working fine till yesterday. Today they have enabled ssl to server (i.e, From http to https). Now when I am running my test plans I'm getting the following error. How can I resolve this issue. Though I am changing the protocol value to https in my request I'm getting the following error, javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)

Timing a Fortran multithreaded program

你离开我真会死。 提交于 2019-12-20 02:37:04
问题 I have a Fortran 90 program calling a multi threaded routine. I would like to time this program from the calling routine. If I use cpu_time() , I end up getting the cpu_time for all the threads (8 in my case) added together and not the actual time it takes for the program to run. The etime() routine seems to do the same. Any idea on how I can time this program (without using a stopwatch)? 回答1: Try omp_get_wtime() ; see http://gcc.gnu.org/onlinedocs/libgomp/omp_005fget_005fwtime.html for the

Testing with JMeter: how to run N requests per second

感情迁移 提交于 2019-12-18 10:01:40
问题 I need to test if our system can perform N requests per second. Technically, it's 2 requests to one API, 2 requests to another, and 6 requests to third one. But the important thing that they should happen simultaneously - so 10 requests per second. So, in JMeter I've created three Thread Groups, first defines number of threads 1, and ramp-up time 0. Second thread group is the same, and third thread group defines number of threads 6 and ramp-up time 0. But that doesn't really guarantee it's

What is the most efficient way to wait for a page element (xpath) to show up in Selenium Webdriver?

我怕爱的太早我们不能终老 提交于 2019-12-18 09:08:28
问题 I am using Java and Selenium Webdriver in order to test the functionalities of a single page web application. For this reason, clearly, elements are injected and removed from the DOM dynamically. I know I can wait for an element to be present in the DOM using similar code that is using WebDriverWait (very neat template I wrote slightly changing GitHub): public void waitForElement() throws Exception { /* Inject the following snippet in any web page to test the method <button class="i-am-your

Using nested vectors vs a flatten vector wrapper, strange behaviour

心已入冬 提交于 2019-12-18 02:22:49
问题 The problem For a long time I had the impression that using a nested std::vector<std::vector...> for simulating an N-dimensional array is in general bad, since the memory is not guarantee to be contiguous, and one may have cache misses. I thought it's better to use a flat vector and map from multiple dimensions to 1D and vice versa. So, I decided to test it (code listed at the end). It is pretty straightforward, I timed reading/writing to a nested 3D vector vs my own 3D wrapper of an 1D

Visual studio Web Performance tests - OAuth 2.0

冷暖自知 提交于 2019-12-17 21:36:50
问题 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

Which has faster performance indexesOfObjectsPassingTest or filteredArrayUsingPredicate?

≯℡__Kan透↙ 提交于 2019-12-17 05:45:09
问题 When needing to filter an NSArray to get a subset of the items in the array returned, which method is quicker more frequently and in edge cases? 回答1: The following tests (compiled in Release mode, executed on a Mac Pro) indicate that filteredArrayUsingPredicate is slower than indexesOfObjectsPassingTest if you use a "textual" predicate, but faster if you use block-based predicate. The fasted method in my test was a simple (fast-enumeration) loop that adds all matching objects to a mutable