Current Environment setup for a customer facing website that retrieves data from our internal application with proper permissions.
Dev site connected to Dev database
QA site connected to QA database
UAT site connected to UAT site
Each of the above sites are connected to our internal site and all have different data. No data base shares the same data.
We've just started using Test Studio and I've created a few tests for just navigating through the site to verify pages are all loading. Now it's time to do something a little more complex like searching for an item in a specific status.
So there is a single test case currently - 'Batch cancelled status'
I have it connected to the QA SQL data base so that when the test runs it will find a set of items that I want per the TSQL written. Works great, no issues.
Now I want to use that same test for Dev and UAT, preferably without having to create two more test that are identical other than the database connections. I don't want to have to maintain 3 sets of tests for each of the many situations we have for various scenarios in many different status. This could become a nightmare when changes to the site will eventually be made.
Any advice on this topic would be greatly appreciated. Thanks!
What is the scope that we can record the script on the edge browser? (As we can configure the edge as extra browser and run the script on the same)
If I am the developer of the script and developed the complete suite and then create a package and handed over to someone to execute the same.Is it possible?
Does that another person need to have license to run the same?
Is it possible to develope script from scartch with recording it?
Also how can we skip the recorded script data while running it?(I have already tried by giving the test data but it first try to execute with the data which was given at the time of recording)
Hi all,
I am currently facing issue to automate selecting drop down option after entering text into Kendo drop down filter for ASP.NET MVC and jQuery.
In recording the test case, I successfully entered text into the drop down list filter and select filtered option accordingly.
However, when I executed the test case, the options will not be filtered based on the entry and the option is not selected as per recorded.
So I tried to turn on the "SimulateRealTyping" setting in the test step.
When I executed the test case again, there were no texts entered into the drop down filter at all.
The problem is found in AUT. To reproduce the issue, I tried it on the Kendo Demo page.
Please find in the attachment is the recorded test case with the following scenarios:
1. Click on drop down list and enter "chang" into the filter with NO "SimulateRealTyping"
2. Click on drop down list and enter "aniseed syrup" into the filter WITH "SimulateRealTyping"
I tried to see if I do keypress "Down" after entering text into filter will help to select filtered option correctly, but it still failed to do so.
Is this issue related to the translators available in Test Studio at the moment?
Can anyone help to solve or advise on this issue?
Thank you in advance.
Regards,
Yan Jun
waitforexists is a void method, not a boolean one, so how can I do an if statement on it via the codeless steps?
Also its super annoying to have an else after every if. Sometimes I just want the if, and if the if isn't true to continue execution.
Hi Team,
I am trying to the get the current Url of the active page and tried this. But in the Log View i am not able to see the URL. As after fetching the URL I need to split the URL.
var URL = this.ActiveBrowser.Url.ToString();
Log.WriteLine(URL);
We have a web application with a Kendo Dropdown list box and want to compare the list of items in the UI to what the list should be in SQL. Does anyone have a good solution for this or can point me in the right location/forum?
Thanks so much!
Hello,
sometimes I have "System.Reflection.TargetException: Object does not match target type." exception in HtmlInputCheckBox.Check() method.
Can anybody say what happens? And fix it.
The stackTrace is below.
Exception thrown executing coded step: 'Configure 'Repeat on' days'.
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.Reflection.TargetException: Object does not match target type.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'document.getElementsByTagName('input')[14].checked',ClientId:'Client_9419ea84-45a6-4dde-b63a-243e6f22aa03',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Reflection.TargetException: Object does not match target type.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
at CallSite.Target(Closure , CallSite , Object , String , BindingFlags , Object , Object , Object )
at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script, Boolean refreshDom)
at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName, T defaultValue)
at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlRadioCheckboxControl.get_Checked()
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlRadioCheckboxControl.Check(Boolean isChecked)