Telerik Forums
Test Studio Forum
17 answers
311 views
Hi, My 2nd post here. 

What if the recorded step is not quite right?
Is it possible for me to fine tune it?

For example, I have this "LeftClick on x...Textblock", with the following Find logic:

Expression:

XamlTag=datagrid,automationid=DataGrid,|,XamlPath=/grid[0]/border[0]/grid[name=Root]/datagridrowspresenter[automationid=RowsPresenter]/datagridrow[0]/datagridfrozengrid[name=Root]/datagridcellspresenter[name=CellsPresenter]/datagridcell[3]/grid[name=Root]/contentpresenter[0]/stackpanel[0]/textblock[0]

FindLogic:

[automationid 'Exact' DataGrid] AND [XamlTag 'Exact' datagrid][XamlPath 'Exact' /grid[0]/border[0]/grid[name=Root]/datagridrowspresenter[automationid=RowsPresenter]/datagridrow[0]/datagridfrozengrid[name=Root]/datagridcellspresenter[name=CellsPresenter]/datagridcell[3]/grid[name=Root]/contentpresenter[0]/stackpanel[0]/textblock[0]]

How to interpret it? 

What looks obvious to me is the 'XamlPath=' part in Expression. That should tell me how to locate the object in DOM. For the rest, the syntax is still unclear to me. Moreover, is the  [XamlPath 'Exact' ...] part in FindLogic the same as what's in Expression? If so, why duplicate it to two places? 

Sorry for so many question, here is the last one. If I don't want to select a data grid by a fixed  place, but rather select a data grid according its content, say the content begins with 'Abc', how can I alter the recorded step?

Thanks


Stoich
Telerik team
 answered on 26 Dec 2012
1 answer
64 views
What's the difference between '~' and '^'?
Konstantin Petkov
Telerik team
 answered on 24 Dec 2012
1 answer
154 views

I have created a test for the following

a. Add a name
b. Send an email

I need to verify the values against the database.  I have written two queries one for getting the name and other for getting the email id from the database.  In Coded step i have given the connection string and executed one query (retrieving a name).  To get the email id (retrieving an email) do i need to declare connection string again or add another coded step?  Both tables are in the same database.
Nikolai
Telerik team
 answered on 24 Dec 2012
1 answer
77 views
Hi,

I was wondereing if it is poosible to add more information in the Failed Test component when editing the the email notofication settings?  Currently it displays <Testname> <MachineName>, however we would like it to display the description of the test in the test properties.

The reason for this is some of our tests are very descriptive, and are too long ( due to path length limitations ) to include as part of the step name so we have used the Comment feature as well as the Test Step Description property to advise the user the exact purpose of the test.

Another useful option for us would also be <Testpath>.

Are either of the above possible?

Thanks
Shane
Boyan Boev
Telerik team
 answered on 21 Dec 2012
3 answers
258 views
Hello All,

I am trying Test studio to check if it works for me.
One of the features I noticed is, If test studio is not able to find the element based on its Find Logic,  it tries to find the element using backup search.
For my test, I am getting following message in TestResults:

23    Enter text 'Instruction 1' in 'Instruction1TextArea'
Element was found by backup search only! We recommend editing the element to correct the primary find expression.
Primary Find Expression: id=DropParent5469,|,tagIndex=textarea:0
Element was found by backup search: xpath=/html[1]/body[1]/div[3]/div[2]/div[1]/div[1]/div[3]/div[1]/div[1]/textarea[1]        Pass



I want to know, where does test studio stores the xpath for the element? Is there any way to find out the xpath without executing test(from element definition or something like this)?
Also, Is there any way to specify the test to find elements based on xpath only?


Thanks and Regards,
Shruti


Amit
Top achievements
Rank 1
 answered on 21 Dec 2012
1 answer
43 views
the colour of a  successed schedule TestList is stil yellow.
why is not green?
Ivaylo
Telerik team
 answered on 20 Dec 2012
7 answers
154 views
Hey there,
  I need to test an SPA build with Kendo MVVM.  So pretty much I need to call some set methods on the viewmodel in the test (in javascript), then record\test the results in the viewmodel.  So like test step 1 says $viewModel.set("isActive", true); ...then I check visibility of some items.  Then set it to false, and check other things (etc etc)

How can I accomplish this?

Thanks,
Steve
Cody
Telerik team
 answered on 19 Dec 2012
1 answer
86 views
when I set a schedule TestList,Some times,it will be excuted,some times it not ,Why??
The  Scheduling Server was always open
Plamen
Telerik team
 answered on 19 Dec 2012
3 answers
93 views
Can I set the browser playback width (in order to test visibility of responsive items?)
Boyan Boev
Telerik team
 answered on 18 Dec 2012
5 answers
167 views
I am evaluating the studio to check whether it fits my needs. I have found a *lot* of issues, let me try to sum them up here:

Test runner
  1. Test runner on different machine *must* use run as administrator (I get an error), still it continues to run. Quit the app if it must be executed as administrator. Also, *force* it to be started as administrator.
  2. Configure as scheduler must also be executed as administrator.

Scheduler
  1. The create database in the scheduler only works half of the time. In fact, I had to create an empty database and then it could be created. The server was not listed automatically, though other servers (that MS SQL Manager does not recognize) were found.
  2. Start execution server at startup does not work (read: is useless). It must be executed as administrator.

Load test services
  1. Load test services has no password field, it just shows the password there in clear text.
  2. Load test services has different button sizes. I know this is low prio, but it gives me the feeling the product is not developed with care.

Test studio
  1. The navigation inside the app is really hard to understand.
  2. Why run as administrator?

ScheduleService API
We are trying to automate the scheduler service. What we do is create a client for the web service and schedule a new test for the next minute. Then we wait and we are able to see whether a test succeeds or fails. However, we cannot find any documentation on this service. Also, we cannot find any way how we can automate the retrieval of the log. In case of a failing UI test, we want to create a JIRA issue (we will automate this ourselves because it lacks JIRA support), but we do need the test log.

Can you please provide info on how we can retrieve the test log for a test that is executed on a remote machine? Just like the test studio does.

Thanks.
Stoich
Telerik team
 answered on 15 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?