Click 'Connect with Facebook' to join NetworkedBlogs. NetworkedBlogs is a community of bloggers and blog lovers. Join the fun, add your blog, and connect with others who read and write about subjects you like.
Workaround: Flash selenium test would not run in firefox 3.5 except when the browser mode is *firefo
I looked into flash selenium a few weeks back and i thought it was a great way for me to test certain part of the apps i have been ignoring for some time.However after knocking up a few test i discovered that my test would not run in my version of firefox (3.5). I got this error: INFO - Got result: ERROR: Threw an exception: NPMethod called on non-NPObject wrapped JSObject! on session 471c65508e46457fa43f4deb873d0592Then i read in some issue raised in the flash selenium site that flash selenium would only work in f
selenium failed to start browser in iexplore mode when selenium server is started dynamically in cod
In a previous post, i have written about how i have been starting/ stoping the selenium server dynamically. What i didnt mention was that i was not able to run my tests using Internet Explorer. I got this error11:56:55.272 INFO - Command request: getNewBrowserSession[*iexplore, http://localhost:8080, ] on session null11:56:55.272 INFO - creating new remote session11:56:55.381 INFO - Allocated session 688eff769c8b4751b5fb9477bba213f3 for http://localhost:8080, launching...11:56:55.397 ERROR - Failed to start new browser session, shutdown browser and clear all
Search for a single digit within a string using regex as provided in java api
In my current work, i have been writing a lot of test in Java, which obviously means i need to learn a lot more about the Java api, which is good i think?????Well i needed to match the single digit in this string "home-area-1" and return this digit. With a quick google i found this piece of code here.Pattern p = Pattern.compile("a*b");Matcher m = p.matcher("aaaaab");boolean b = m.matches();System.out.println(b);A quick run of this code printed "true" which means the code works.So i wrote this:Pattern p = Pattern.compile("[1,2,3,4]")
Start the Selenium Server dynamically
I have been working on a test suite in java using testng as the testing framework. I could not have suggested any other test frame work as it allows me to do a lot of configurable setups and teardowns. Yeah am not gonna promote testng anymore, lol.I could have started using selenium server using a usual batch file that maven could call in one of its targets but i think doing it this way is cleaner.public class SeleniumManager { private SeleniumServer seleniumServer; private static Selenium selenium; private RemoteControlConfiguration rcc; @BeforeSuite @Parameters( { "selenium.port" }) public void start
Setting user extensions when the Selenium Server has been started dynamically
I hope this helps someone someday, I needed to set user extension for a selenium test suite, dynamically in the code as i was starting the Selenium server via same.public void startSeleniumServer(String port) { rcc = new RemoteControlConfiguration(); rcc.setPort(Integer.parseInt(port)); try { seleniumServer = new SeleniumServer(false, rcc); seleniumServer.start(); } catch (Exception e) { throw new IllegalStateException("Can't start selenium server", e); }
Not enough data.
Calculated for blogs with 20+ followers.
- Fear and Loathing
SharePoint, Agile, Development
- LearnQTP
QTP, Software Testing, QuickTest Professional
- Lean Software Engineering
agile, software, project management
- The Hacker Chick Blog
software, development, agile
- Guru Stop
asp.net, Agile, DDD
Questions? contact: networkedblogs@ninua.com
Copyright (C) 2008, Ninua, Inc.