Note: this test was working under twist 1.0
Govind, do you have a window id set in your window.open call? If not go ahead and add one. Then you can switch context using selenium.selectWindow("theidofthewindow");
FYI you might want to have this as a separate thread so that answers for the first question don't get muddled with your one.
I found the selenium.getAlert or selenium.getConfirmation to be pretty reliable to capture alerts and confirm boxes. The only exception is if the alert/confirm is activated by onload
I seem to have fixed it by moving all of the configuration settings from suite to context
Hi Nivetha,
I tried the change out, but as soon as I try to execute a Twist test I get the following error:
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:570)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:190)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
C:\AptiaProjects\VSM\QATwist\Twist\VSM\scenarios\Report Samples Collected Count.scn:0
Thanks!
Thanks I'll try it out now
Did this feature get included in the 1.0 release? If so, how do you enable it?
Thanks!
It might be worth including this information in your docs.
Thanks Ketan, I'll check out the Team Project Set. This is my first time using Eclipse and wasn't aware of this feature (I'm a VS.NET guy).
+1 for this feature. Thanks!
I adjusted the regex slightly to .*ScriptResource\.axd but after that everything seems to work again. Thanks!
ok that's embarrassing. I'll try it out later. Thanks!
Hi Nivetha,
c:\tmp does exist I also tried \tmp but this didn't work either. I also tried just specifying selenium.captureScreenshot("test.png") and that did work, but isn't optimal as I want to put them in a separate directory.
I'm now getting the same issue on the test server as well:
Error: missing ; before statement
Source File: http://<server-name>/VSM/ScriptResource.axd?d=8EHbmBWK30h00qDYjMnaAkpvtXl-y2T6LSTnVAxNSVwMUZd-3ei0pF4tSDSaDuL8hQCjbnd85aRtQYNUie0raluYeFiGitT4uqPN0P88w1U1&t=ffffffffc9b09310
Line: 2, Column: 1
Source Code:
<script type="text/javascript" src="/selenium-server/core/lib/cssQuery/cssQuery-p.js"></script>
I've attached the contents of the referenced ScriptResource.axd file
Great. Thanks!