Telerik Forums
Test Studio Forum
1 answer
94 views
Hi,

I need to use ActiveBrowser to find a link with a name that includes an extracted variable from a previous step.  The name is not an exact match with the variable, but has 1 letter that is different.  How can I use a coded step to find this variable link and perform an onclick on it?
Stoich
Telerik team
 answered on 05 Sep 2012
1 answer
83 views
Hi there 
        I have a test scenario where I Have a large number of rows of test data in my bound data source, but in any given test run only some of them will be valid, I have worked out how to use a logical If step to skip rows that are not relevant but I was wondering if there was a way I can get the test run to end after it has found a certain number of relevant records rather than waiting for it to check all the rest of the records.

So for example
let’s say I have 500 rows of data and I know that 5 of them are valid for this test, lets also say that the If statement finds that rows 1, 3, 5, 7 and 9 are valid how can I tell test studio to stop the test run and not bother checking the other 491 rows?

Thanks

Carl

Stoich
Telerik team
 answered on 04 Sep 2012
5 answers
131 views
Where locally is the test logs saved for each test ran from test studio?  Thanks
Alan
Top achievements
Rank 2
 answered on 04 Sep 2012
4 answers
108 views
hi,

i have an error when add a script step or custom a step by code. after click run, i get the error log:

: Line 0: (CS1703) An assembly with the same identity 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.



but if it is a new and clean test, it's ok for running. the error will be shown after an empty "Script test" added.




Overall Result: NotRun
------------------------------------------------------------
'9/4/2012 10:26:48 AM' - Using .Net Runtime version: '4.0.30319.269' for tests execution.
'9/4/2012 10:26:48 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'9/4/2012 10:26:57 AM' - Using 'InternetExplorer' version '7.0' as default browser.
------------------------------------------------------------
'9/4/2012 10:26:57 AM' - Overall Result: NotRun
'9/4/2012 10:26:57 AM' - Duration: [0 min: 0 sec: 109 msec]
------------------------------------------------------------
'9/4/2012 10:26:59 AM' - Test completed!


OS: XP sp3
Telerik test studio version:2012.1.719
test project is in TFS2010. and it is a C# project.


could you help? thanks a lot!

Seff
Top achievements
Rank 1
 answered on 04 Sep 2012
1 answer
81 views
Hello Telerik Team,

I have an issue with capturing elements from a Model Dialog. The hover over elements does not work in the modeldialog/popup

Can you please help me on how to achieve this, I have also tried to use the reconfigure the recorder option, but it didn't help

Thanks
Satvick
Stoich
Telerik team
 answered on 03 Sep 2012
2 answers
67 views
Hello,

is there a lightweight product for a continuous integration server?
I mean, just the executable to run the tests (without installing the test generation tools).

Thank you for your attention
Mood
Top achievements
Rank 1
 answered on 03 Sep 2012
3 answers
109 views
Hi,

Is there a way to tell TestStudio to execute a test from an excel file?

For example, have a test that loops through rows in Excel, then reads data from some columns, and if the conditions are met the test reads the name of another test from the Excel sheet, then executes that test?

Thanks in advance for your advice and input.

Sincerely,

Jon
Ivaylo
Telerik team
 answered on 31 Aug 2012
4 answers
194 views
Hi,

I am trying to extract a variable from the URL itself and set it as a string.  What I tried to do is the following.

sample code:

string URL = ActiveBrowser.Url.ToString();
string Variable= (URL).SubString(84, 2);

NativeWindow window = new NativeWindow();
window.AssignHandle(ActiveBrowser.Window.Handle);            
MessageBox.Show(URL);

I am getting a compilation failure, what is the correct way of setting the URL as a string, trimming it as needed and setting it as a variable(int). 
Dan
Top achievements
Rank 1
 answered on 30 Aug 2012
1 answer
127 views

I would like to have global variables which can be used across tests in current project.
In the project namespace, I creates a static class with the global vars (along with accessor methods).
But I was not able to use these vars, error seen while running tests stating: class does not contain definition for var.
I am not so familar with C#, but I tried other solution as well: created a struct inside the static class,
which includes the global vars. But in this case, I was not able to access the struct vars.
Value types for some reason cant be accessed the way we expected global vars to ber accessed.
I cant acess value types globally but for some reason I can acess reference types.

Any ideas or workaround on creating global vars - which can be set/get accross different classes/tests in Telerik?

Thanks,
Rakesh

Cody
Telerik team
 answered on 30 Aug 2012
1 answer
128 views
I'm getting two different 'Extracted Data Driven Bindings' from the recorder. At the end of the test I want to do an Assert.AreNotEqual() with the two dynamically extracted data values. How can I do this? When I try coding a step, the data bindings aren't available to the coded step.
Plamen
Telerik team
 answered on 28 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?