selenium-webdriver,jmeter,load-testing,performance-testingRelated issues-Collection of common programming errors
Isaac Dontje Lindell
python selenium webdriver selenium-webdriver
I’m trying to test a webapp I’m developing. I’m using the Firefox driver against Firefox 22.0.At one point, a modal dialog may pop up (a Javascript prompt()). If it does, I want to enter some text and then dismiss it (click OK).Here’s the relevant code:try:if button.text == “Run”:button.click() except UnexpectedAlertPresentException:alert = self.driver.switch_to_alert()print alert.textalert.send_keys(‘8080’)alert.dismiss()The UnexpectedAlertPresentException is being thrown. However, as soon as i
vincebowdren
selenium jenkins selenium-webdriver
I have written a webdriver test which I am trying to run via Jenkins distributed node. Here is the code snippet.WebDriver driver=null; try {System.setProperty(“webdriver.ie.driver”, “D://IEDriver//IEDriverServer.exe”);InternetExplorerDriverService service = InternetExplorerDriverService.createDefaultService();driver = new InternetExplorerDriver(service); }catch(Exception ex) {ex.printStackTrace(); }if(driver==null) {throw new Exception(“Driver is not initialized”); } driver.get(http://www.google
user2528993
selenium-webdriver phantomjs nagios
I use phantomjs(1.9.2) whith selenium webdriver (2.29) as browser for execute some scripts with nagios. In my scripts I connect to a website and I verify some informations on it. But sometimes i have an error when the script run (not all the time) this error is :ANY — [2013-10-01 21:00:05] : Unkonwn error ‘unexpected response, code=404, content-type=”text/plain” All the scripts does this error and i don’t know why. After some investigations some images on the website doesn’t load. I can use the
siemic
excel junit selenium-webdriver
I am using this method to readFileInputStream fi = new FileInputStream(“C:\\Users\\GChaitanya.CHAINGANG\\Desktop\\2012_October_3PL_Unified_Template.xls”); Workbook w = Workbook.getWorkbook(fi); s = w.getSheet(0);And this to write WritableWorkbook wb = Workbook.createWorkbook(new File(“D:\\output_2.xls”)); WritableSheet ws = wb.createSheet(“customsheet”, 1);I get this errororg.openqa.selenium.StaleElementReferenceException: Element not found in the cache – perhaps the page has changed since it wa
RedBaron
python selenium selenium-webdriver
I am new to python. I developed test case using selenium webdriver in python language. And this is my code.def setUp(self):self.driver =webdriver.Firefox()def test(self):driver=self.driverdriver.get(url)driver.find_element_by_partial_link_text(“Providers”).click()element = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, “Userid”)))elt=driver.find_element_by_id(“Userid”)def tearDown(self):self.driver.quit()While running the program i got the error as File “testcase.py”, lin
star95
java selenium-webdriver selenium-chromedriver
I am trying to execute my selenium test scripts using chrome driver 2.6 (chrome browser v.29). Test cases are smoothly executed. But, some of my test cases fails because it gives unexpected alert exception. Same scripts are running successfully in firefox (have ignored unexpected alerts in firefox profile).My question is – Is there any provision of ignoring unexpected alerts in chrome profile? If no, how to handle it?Any help will be highly appreciated.Thanks in advance.
user1627133
selenium-webdriver
Is it possible for selenium to wait for an user input if an unexpected event occurs in the script(like a message box/ new window/ warning / alert or any other interruption)? For example if some new functionality is added to the code and when selenium script is run, the test shouldn’t break but should wait for manual intervention where the condition in the new functionality occurs.
Abu Hamzah
selenium selenium-webdriver
I have seen this error first time and I never had this before can anybody tell me what is this error about?the only new thing what I have done is add this line of code:IWebDriver driver = new FirefoxDriver(); driver.Manage().Timeouts.SetPageLoadTimeout(TimeSpan.FromSeconds(2));error: Unexpected error. okat OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:\Projects\WebDriver\trunk\dotnet\src\WebDriver\Remote\RemoteWebDriver.cs:line 1002at OpenQA.Selenium.R
Chris
selenium selenium-webdriver
ProfilesIni profile = new ProfilesIni();FirefoxProfile ff = profile.getProfile(“ScreenCapture”);WebDriver driver = new FirefoxDriver(ff);driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);driver.get(url);Thread.sleep(8000);File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);driver.quit();Shouldn’t driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); force a close of the selenium generated Firefox browser after 15 seconds? The browser just sits and
Nashibukasan
c# visual-studio-2010 selenium-webdriver performance-testing
Currently I am noticing my automated tests (CodedUI) are running a bit slow at times. I want to run a performance profiling tool on them as they run through VS2010. I have tried to use Red Gate’s ANTs Profiler but am confused as to what process (or other?) I am supposed to attach it to.The closest I came was by starting the Profiler from commandline and having a Mstest.exe call that runs a few tests as the process argument. This only returns me VS method performance and not my own test code.//e.
Moshe George
proxy jmeter
my test app is opencart, I am unable to record login scenario for open cart. The scenario is, if i provide a username/password while proxy recording is off, works fine. But when i’ve started recording and providing the username/password will not workThe response data saysNotice: Undefined index: email in D:\ProgramFiles\wamp\www\opencart\catalog\controller\account\login.php online 201Notice: Undefined index: password inD:\ProgramFiles\wamp\www\opencart\catalog\controller\account\login.php online
Suchit Parikh
automated-testing performance jmeter
I have a set of JSP Pages for each I have a set of links to use for the response time measurements. In order to aggregate the results correctly I am trying to run a foreach controller over a loop controller using the csv data set config element. Somehow I cannot get the setup to parameterize the filename of the CSV config element.ThreadGroup JSP Names Foreach JSP ControllerLoop ControllerCSV config reading from ${jspPage}.csv (not working) HTTP Requestany ideas?
The_Amol
javascript dynamic encryption jmeter tableau
i am trying to run a jmeter script but it is failing at login. reason is, password is getting enrypted using RSA algorithm and that is using javascript. so the password that is saved at the time of recording wont work and i am not able to get the dynamic value of crypted password as it is being ecrypted using javascript which is not supported by jmeter. because of javascript usage at runtime, i can not use regexpression to lookout in response data as this is not part of response. i am trying to
stevebot
java logging junit jmeter
I’ve noticed that when I run a Junit sampler with Jmeter, the messaging is pretty bare. If an exception occurs, Jmeter will report it, but everything else that happens in my tests has to get outputted using Log4J or another logging tool. Is there a way just to log result back to Jmeter? Do they have an API for this?
jschoen
java plugins jmeter
Can anybody answer, which *.class is responsible for reading Jmeter plugins list from ./lib/ext? Or where in Jmeter sources elements tree is built?My problem is that I’ve built my own JMeter Listener from sources(maven project), but it is not displayed in “Listeners”I’m able to debug code on runtime, but I do not know which class exactly.
user1984004PRI
nullpointerexception jmeter
The Jmeter script runs fine on apache-jmeter2.8. I upgraded recently to apache-jmeter-2.10 and I started getting Null Point exception.I revert back to apache-jmeter2.8 and the script works fine.java.lang.NullPointerException at org.apache.jorphan.util.JOrphanUtils.replaceAllChars(JOrphanUtils.java:264) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.encodeSpaces(HTTPSamplerBase.java:1332) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1
acutesoftware
jmeter
I’m new to Jmeter and trying to get a small test running for proof of concept purposes – but am getting the following error recording the steps (basically log in, click around, log off)Any suggestions ..? 2013/10/28 13:23:47 ERROR – jmeter.protocol.http.sampler.HTTPHC4Impl: Error in redirect URL for GET https://blabla.blagroup.com/Home/Default.aspx HTTP/1.1 Could not sanitize URL: /Pub/Login.aspxjava.net.MalformedURLException: no protocol: /Pub/Login.aspx at java.net.URL.<init>(Unknown Sou
Jamie Piltz
performance testing jenkins jmeter
I’ve been trying to use JMeter to create some automated Performance Tests and I’m setting up a job in Jenkins so that people can run it and view the results there.I’m trying to add a few parameters to the job that correspond to the options available in the Thread Group. They are:Number of Users Ramp-up Period Loop countSome people don’t quite understand the concept of the ‘Ramp-up Period’ so instead I wanted to make refer to it as ‘Delay’ and use it to control how long each thread will wait befo
girlytech59
performance jmeter load-testing
I am using JMeter to test my web application. I am able to run test and can see results using various listener. To reduce resource when i run with more than 1000 thread i run jmeter in non gui mode and after completion of test view the result in graph mode. I want to know how accurate are Jmeter results(average/median response time). Let suppose if 1000 users are using my web application and they have response time of 20 ms. If i simulate 1000 users using JMeter and then see average ,median time
Oliver Lloyd
java jmeter load-testing
I want to change the number of threads for a JMeter test plan at runtime. I have Googled my problem and found a proposed solution to use JMeter plugins. But in this solution I would have to schedule the thread group before running the test plan, which I don’t want. I also found another potential solution which changes the property, but doesn’t affect test plan behavior at run time. Ultimately, what I am trying to do is change the thread number given in a thread group and have it immediately inc
Peter Mortensen
database benchmarking load-testing capacity-planning
This is a canonical question about capacity planning for databases.Related:Can you help me with my capacity planning?How do you do Load Testing and Capacity Planning for Web Sites?I’m looking to create a canonical question of tools and methods of capacity planning for databases. This is intended to be a canonical question.Obviously, the general workflow is:Put your scenario in place Add monitoring Add traffic Evaluate results Remediate based on results Rinse, repeat until reasonably happyPlease
Aaron
iis7 asp.net load-testing
I have WCAT 6.3 running fine up until the point where it is supposed to generate the log.xml file. In the cmd window, I just see the last Cooldown update, like so:****************************************************************************** COOLDOWN 20/30 secs 0 hours, 2 minutes, 20 seconds ******************************************************************************Connections = 0 ( 0/sec)Disconnects =
Ludo
nginx django load-testing uwsgi ab
I’m running a Django app, using uWsgi behind Nginx. I’ve been doing some performance tuning and load testing using ApacheBench and have discovered something unexpected which I wonder if someone could explain for me. In my Nginx config I have a rewrite directive which catches lots of different URL permutations and then forwards them to the canonical URL I wish to use, eg, it traps www.mysite.com/whatever, www.mysite.co.uk/whatever and forwards them all to http://mysite.com/whatever.If I load te
newbie
c# c++ unit-testing c++-cli load-testing
I have a load test which contains only a single unit test.The unit test is of a function in C# which calls C++ code using C++/CLI wrapper.It runs well without any exception.The projects are1)Business logic ->BusinessLogic.lib2)Wrapper(takes Business Logic.lib)->Wrapper.dll3)C# project(takes Wrapper.dll)The load test on running says that Wrapper.dll is not found whereas the full application runs properly and even unit test doesn’t report any such errorThe exact error isTest method TestProject1.te
yatskevich
jsf-2 load-testing
We are using JSF2 in our application. For every JSF page request, there is a hidden field javax.faces.ViewState issued by server. This is a new id for every page request every time. This value needs to be passed back to the server for next page request.<input id=”javax.faces.ViewState” type=”hidden” autocomplete=”off” value=”3120911944178727151:-831154453296813769″name=”javax.faces.ViewState”/>In load testing, we have issues in passing this value for HTTP request.We are using QALoad tool f
girlytech59
performance jmeter load-testing
I am using JMeter to test my web application. I am able to run test and can see results using various listener. To reduce resource when i run with more than 1000 thread i run jmeter in non gui mode and after completion of test view the result in graph mode. I want to know how accurate are Jmeter results(average/median response time). Let suppose if 1000 users are using my web application and they have response time of 20 ms. If i simulate 1000 users using JMeter and then see average ,median time
Oliver Lloyd
java jmeter load-testing
I want to change the number of threads for a JMeter test plan at runtime. I have Googled my problem and found a proposed solution to use JMeter plugins. But in this solution I would have to schedule the thread group before running the test plan, which I don’t want. I also found another potential solution which changes the property, but doesn’t affect test plan behavior at run time. Ultimately, what I am trying to do is change the thread number given in a thread group and have it immediately inc
Keiga
c# asp.net-mvc-3 azure load-testing
I am working on an internal system testing piece of software. Currently it allows our QA to regression test every release which is useful, but we would like to extend it to allow for load testing. We have decided to explore Azure since it will allow us to spin up multiple instances of our test software and run it from N machines located around the world to load test our servers. I am aware that I can create an azure app that can be uploaded and auto-run on N machines where N is set in the settin
Ev.
performance load-testing test-strategy
I have recently written a bunch of aspects (using PostSharp in C#) that will be applied to methods in some high traffic sites.How should I make sure they are going to perform?Can anyone recommend some load testing/profiling techniques that I can use?
symcbean
apache2 mysql php load load-testing
I’m building a quite simple web application, and need to get some rough understanding of how much load my server can take.Of course, this depends on a whole lot of factors, but I just need a rough idea if we’re talking about ten or ten thousand users, because at the moment I have no idea.Standard LAMP-setup, with a quite small database and a reasonably simple and fast PHP. Each non-static request requires about 20 simple SQL queries. With no load, the runtime for such a request is around 50 ms.
bholanath
c performance gcc performance-testing cpu-architecture
I am accessing a shared library (shared array data structure)from program1 and find the access time to read all elements of that array. I got around 17000 ticks while only Program1 executed alone.Now when I execute program2 (having empty while loop to hold it from termination) in another tab first , then run program1 and measure the access time to read all elements of that array. To my surprise now I am getting 8000ticks as compared to previous scenario where only Program1 executing.It looks lik
bholanath
c linux shared-libraries performance-testing cpu-architecture
Can anyone explain these results in C ? Access time after sleep is LOWER whereas Higher access time is expected. CASE 1 : Only program1 (check.c) is running. No other program is running. After sleep I am getting HIGHER access time to access 4K shared library data.CASE 2 : First I run dummy.c in one terminal, and then run check.c in other tab. Before going to sleep I am getting higher access time, but after sleep I am getting LOWER access time than before going to sleep to access 4K shared librar
Erogol
matlab performance-testing
I want to be able to measure performance of my code and find the lacking parts. What is the proper way to do that in Matlab? I know I can use just tic: and toc; functions to see the time passing but there might be more convenient way.
Stormfjes
performance-testing loadrunner
We have recently started using the truClient protocol, but we have problems when it comes to multiplying wait time (Like the functionality for multiplying think time in http web scripts). The only value we can find is “wait time”, but there is no “multiply wait time” setting in runtime settings in Performance Center.We thought about having an external param file and using a value there as base for multiplying think time, but I’m not sure this is very ideal. Is there a “best practice” way to mult
scott.korin
vb.net visual-studio-2010 debugging visual-studio-debugging performance-testing
In our VB6 applications, we added a few utility functions for tracking the amount of time spent in a function. We did this to track performance bottlenecks.Basically, how it worked was there were two utility functions: StartTickCount() and EndTickCount(). You would pass the name of the function in each, and the functions would use a dictionary to get the tick count when StartTickCount() was called, and then subtract the tick count when EndTickCount() was called. This wasn’t perfect because it
Nashibukasan
c# visual-studio-2010 selenium-webdriver performance-testing
Currently I am noticing my automated tests (CodedUI) are running a bit slow at times. I want to run a performance profiling tool on them as they run through VS2010. I have tried to use Red Gate’s ANTs Profiler but am confused as to what process (or other?) I am supposed to attach it to.The closest I came was by starting the Profiler from commandline and having a Mstest.exe call that runs a few tests as the process argument. This only returns me VS method performance and not my own test code.//e.
Justin Dearing
powershell performance-testing integer-division
Microsoft technet suggests [Math]::Floor([int]$a / [int]$b) for integer division. I believe that [int][Math]::Floor($a / $b) is both more readable as well as more performant due to one less cast operation. I have proven both methods equivalent. However, I cannot get consistent results. My methodology involves repeating both methodologies 10,000 times and measuring the results with the Measure-Command cmdlet. However cannot constuct a test where one test performs better than another test repeated
nairboon
performance computer-science performance-testing measurement perf
In parallel systems every process has an impact onto other processes, because they all compete for several scarce resources like cpu-caches, memory, disk I/O, network, etc.What method is best suited for measuring interference between processes? Such as Process A & B each access the disk heavily. So running them parallel will probably slower then running sequential (individual runtime). Because the bottleneck is the hard drive.If I don’t know exactly the behaviour of a process (disk-, memory-
Thorbjørn Ravn Andersen
java scala jvm performance-testing
I am a very proficient C# developer, but need to start writing code that works on the JVM. The Java language is feature poor compared to C# these days, so I was interested in the features that Scala offers. However, when hearing that in Scala, all operators are simply methods, I became suspicious of the performance impact that would have on math-heavy computations (which is important for the types of applications my team writes)So I ran some simple int based tests, and find that Scala is about
Alies Belik
jmeter performance-testing beanshell jmeter-plugins
I have a Jmeter script in which I want to publish 1500 events in 10 mins duration. Is it possible to configure this using “Ultimate Thread Group” or “Throughput Shaping Timer”? If yes, then how?I tried using the default thread group in which I used “Number of threads” to 30 & “Loop Count” as 50, so as to make 1500 events. But, how can I achieve this to publish 1500 events in 10 mins?I am using JMS Point-to-Point as my Sampler.
Web site is in building