Hi all,
Is it possible to pass multiple tests to ArtofTest.Runner for execution.
I know with testlist, we can accomplish this. But our testing environment is rather dynamic , where tests needs to be selected dynamically. So I have a set of tests, from which some needs to be selected randomly for execution.
You can say like dynamic workflow.
So there are two ways we can accomplish this.
1) Passing multiple tests as arguments to ArtofTest.Runner.
2) Editing a list during runtime by adding needed tests.. ( If list is in xml format, then easy.)
Thanks,
VVP
Hey Guys,
After being very happy with your Framework for my studies, I decided to show it to my fellow workers and my boss at work. They gave me two days to generate some of the tests we need for our project, in order to decide if to purchase the TS solution or stay with Microsoft's standard Framework.
So far, I am making good progress, but there is one problem I am not able to solve.
In General
I have got a grid view with some comboboxes inside. The comboboxes are not explicitly created by Xaml code, but instead are generated automatically by some Framework behind by providing the Framework with a table and the names of the ID and display columns.
The Good side
TS does not give a WindowsME about that... It finds the Element, and can select items.
The Problem
TS displays the following expression in the rep:
XamlTag=datagridcontrol,name=dgrMelder,|,XamlPath=/grid[0]/border[0]/adornerdecorator[name=PART_DragDropAdornerDecorator]/tableviewscrollviewer[name=PART_ScrollViewer]/grid[0]/grid[0]/synchronizedscrollviewer[name=fixedFooterScrollViewer]/grid[0]/scrollcontentpresenter[0]/tableviewheaderfooterpanel[0]/headerfooteritem[0]/gridtoolbarinsertionrowsteuermatrix[0]/border[0]/contentpresenter[0]/stackpanel[0]/insertionrow[0]/grid[name=rootGrid]/fixedcellpanel[name=PART_CellsHost]/scrollingcellsdecorator[0]/virtualizingfixedcellsubpanel[0]/insertioncell[1]/grid[0]/border[name=rootBorder]/grid[0]/cellcontentpresenter[name=PART_CellContentPresenter]/grid[0]/innercellcontentpresenter[1]/comboboxex[0]
When I try to find the Element via FindByExpression it fails.
I tried:
FrameworkElement cmbb = WpfApplication.MainWindow.Find.ByExpression(
new
XamlFindExpression(
"XamlTag=datagridcontrol,name=dgrMelder,|,XamlPath=/grid[0]/border[0]/adornerdecorator[name=PART_DragDropAdornerDecorator]/tableviewscrollviewer[name=PART_ScrollViewer]/grid[0]/grid[0]/synchronizedscrollviewer[name=fixedFooterScrollViewer]/grid[0]/scrollcontentpresenter[0]/tableviewheaderfooterpanel[0]/headerfooteritem[0]/gridtoolbarinsertionrowsteuermatrix[0]/border[0]/contentpresenter[0]/stackpanel[0]/insertionrow[0]/grid[name=rootGrid]/fixedcellpanel[name=PART_CellsHost]/scrollingcellsdecorator[0]/virtualizingfixedcellsubpanel[0]/insertioncell[1]/grid[0]/border[name=rootBorder]/grid[0]/cellcontentpresenter[name=PART_CellContentPresenter]/grid[0]/innercellcontentpresenter[1]/comboboxex[0]"
)).As<ComboBox>();
AND
FrameworkElement dgrMelder = WpfApplication.MainWindow.Find.ByName<DataGrid>(
"dgrMelder"
);
FrameworkElement cmbb = WpfApplication.MainWindow.Find.ByExpression(dgrMelder,
new
XamlFindExpression(
"xamlpath=/grid[0]/border[0]/adornerdecorator[name=PART_DragDropAdornerDecorator]/tableviewscrollviewer[name=PART_ScrollViewer]/grid[0]/grid[0]/synchronizedscrollviewer[name=fixedFooterScrollViewer]/grid[0]/scrollcontentpresenter[0]/tableviewheaderfooterpanel[0]/headerfooteritem[0]/gridtoolbarinsertionrowsteuermatrix[0]/border[0]/contentpresenter[0]/stackpanel[0]/insertionrow[0]/grid[name=rootGrid]/fixedcellpanel[name=PART_CellsHost]/scrollingcellsdecorator[0]/virtualizingfixedcellsubpanel[0]/insertioncell[1]/grid[0]/border[name=rootBorder]/grid[0]/cellcontentpresenter[name=PART_CellContentPresenter]/grid[0]/innercellcontentpresenter[1]/comboboxex[0]"
));
I also tried to use verbatim stringsm just for the case. But it didn't change anything.
Can you help me?
Stephan
I am given a long
term project to determine the best method using telerik to do regression
testing on all our web pages, the problem is that not all pages headers and page
design are the same. Is there a better way using telerik to validate ever
changing context? One problem I came across is that a script I created worked
on one page but the header locations changed on the next page so I could not
have reused the code. Is there a better solution? The problem is that the
content changes slightly as well as the location of the elements, the forum had
some good ideas already posted but wondering if have any better means to
perform regression testing on all webpages that has ever changing content
Thank you for
looking into this
Randell
Balkaran
Telerik User.
Hi,
I have Test Studio Ultimate version 2015.2.723.0 installed on Windows 7 Ultimate with IE 11 (version 11.0.9600.17959) and Chrome. I have one parent test bind to xml data and many child test with InheritParentDataSource enabled. Now if I run this test and in a random child test it freezes IE browser and I can't do anything on the page (click to open drop down menu, click on link, etc). However when I refresh the page, it unfreezes the page and everything is working again. This happens at random child test and it is not bound to a specific one. I tried this also in Chrome and it happens that Chrome works fine, but randomly freezes as well. It's quite annoying and frustrating as this happens as well as when I want to record certain steps. For example when I choose highlighter, it doesn't display on the page the red border but register the mouse click.
Any idea what could be wrong?
BR, Jurij
Hi,
I have faced some execution problem from quite a sometime. While executing the suite, ArtOfTest.Runner.exe has been stopped and subsequently execution of the suite has been stopped. Previously this error occurs when our test suite contains around 250 test scripts, so to solve the problem we partitioned it into 2 different suites, Each contains around 100 scripts. But the same problem still persist for 100 scripts as well. Please provide me the appropriate solution for the above problem ASAP.
I have attached the screenshot regarding the above problem.
Hi, discovered that Telerik Testing studio closes when i'm trying to edit element in live version.
My steps:
1. Added an element to elements explorer when recordin test in live.
2. Set compare mode to 'RelativePathQueryNoFragment' for parent/page node element
3. Right-click on added child node element -> Edit element
4. Click 'Find in the live version'
5. New Browser -> Browse & Navigate
6. New instance of Chrome browser starts and Test studio closes. Browser remains open.
This issue disappeared when i changed compare mode to ''Base Url'.
Hi All,
I am trying to find out a way to skip a telerik test.I found some available asserts in Artoftest.common.Unittesting . But i couldn't find any assert for ignore/skip a test step.
Can you let me know how can we skip a test using assert.
I know to skip a test using condition, i am looking for a way so that like pass/fail, skipped tests numbers also will shown in the custom report/ logfile as skipped / Not run.
Strangely, in the execution extension interface provided by telerik team, i found a Notrunsteps parameter.
Currently skipped tests are shown as passed.
Thanks,
VVP
Hi,
Is there any way to change same steps of tests that are part of project? For example; in my test in my project, I navigate a site and enter site using username and password. Now, this navigation adress and enter credentials are changed. How can I change this steps with in all my test. Don't say copy steps and paste. For example; I mean I have approximately 131 tests in a project.
Thanks in advance
Hi,
I've been using Test Studio for about a year now to record automated wpf tests for our in-house platform. Process was hampered by frequent crashes/freezes on my Win 7 station. Since upgrading to a new workstation with Win 8.1 TS recording has become more stable, but now I'm haunted by a new problem.
I use the 'Highlight Element' function frequently, but when our application opens popup windows (for instance a floating window is opened to edit a case in the system), the risk of a crash increases dramatically. And if another window becomes active (Say a confirmation/leave note box to confirm the previous Edit), 'Highlight Element' will almost certainly crash.
A developer made a mock-up of our application that reproduces this behaviour, you can see a recording of it here:
http://www.screencast.com/t/AsnveylhN
Does anyone out there have similar experiences? Any solutions?
Many thanks in advance
Jakob