Telerik Forums
Test Studio Forum
2 answers
171 views
Is it possible to automatically fill a text box with random numbers in QA edition? I have a text box which I want to be filled in automatically with numbers ranging between 9990000 to 9999999. I don't want to use a data source as it will put the execution in a loop.

Any suggestions are welcome...
Vaibhav
Top achievements
Rank 1
 answered on 07 Dec 2011
8 answers
495 views
Hi,

I have this step that I want to upload a file. I want to make the location of the file dynamic/parameterized so that when my team gets the latest solution in TFS they no longer need to change the file location.

I've use the code:

 

string File = Environment.CurrentDirectory + @"\Datasource\SampleFile.docx";
SetExtractedValue("File", File);
Log.WriteLine(Data["File"].ToString());

 


And the current directory it points to is "C:\Program Files\Telerik\Test Studio 2011.2\Bin" not the location of the TestStudio Directory.

Using the VSTS CodedUI it works properly since I can add the Solution directory to the Deployment Settings of the Project.
Cody
Telerik team
 answered on 07 Dec 2011
5 answers
280 views
Hello,
I am having problems with tests that are scheduled not executing.  The tests run fine when executed from test studio however when I schedule them they do not run.  Originally the scheduling server log was giving me an error saying the execution server was busy even though this was not the case.  After the standard restart services/reboot etc.. with no luck we installed the latest version of Test Studio.  Scheduled tests are still not running with a mixture of messages in the scheduling server log some continuing to say the machine is busy executing other tests and others saying that the project was deployed to a folder and I believe building but nothing further.  Any help or suggestions are appreciated I love this product until this problem came up.

Thanks
Plamen
Telerik team
 answered on 07 Dec 2011
5 answers
290 views
Hi,

I have upgraded Test Studio from 928 to 1117. I have a test scenario with a pop-up window, it worked fine with previous versions but now it can open pop-up window, click on a button there but while trying to close it it gives an error:

InnerException:
System.ArgumentException: Cannot find Browser host with Url: '/payment/PostFinancePayConf.ashx?'.
Attempted to close Browser: 'https://dev-en.office.comparis.intra/payment/YellowPayEmuNew.aspx
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

I tried it with Firefox, IE, Chrome and Safari and got the same error.
It worked fine before the upgrade.

Thanks

Ercan
Doga Ercan
Top achievements
Rank 1
 answered on 07 Dec 2011
1 answer
134 views
I want to select the last row of a table. The table is populated according to options given by the user and based on the data in the database (which keeps changing as there are updations and deletions going on every now and then). So, the number of rows will differ every time my test case is executed. How do I set up my test case so that every time the test is executed the last row in the table is selected.
I have attached a screenshot of what the table looks like. So, in this table I would want to select the row wherein the SRV# is 1312184 as that is the last row.. But next time when somebody runs the test case, this row might not be the last row and the size of the table might also change. For example, this table has 4 rows but next time the test case is run the table may have 10 rows or just 2 rows. I hope you catch my drift...
Also, I tried to extract the values of the SRV# from previous steps (as the SRV # are unique) and use them to select the row. But if you see the picture every SRV# has a dotted line which means they are linked to another page. Now, I don't want to click exactly on the number as I don't want to open that link. If one clicks anywhere in the row that row gets selected and that is what I want to do.

Any suggestions...    
Plamen
Telerik team
 answered on 07 Dec 2011
3 answers
82 views
Hello,

In our project, we are handling our automated tests by using Visual Studio plug-in.
We created Telerik tests project as a part of our project solution and we are running automated Test Studio tests as a part of our nightly builds.

In the nightly builds, all the tests which are in the test project are all running, but we want to run only the tests which we choose.
There is a test list editor in VS. I select the tests that I want to run with the build, but it still runs all the tests.

Can you please help me?

Thanks,

Esra



Plamen
Telerik team
 answered on 06 Dec 2011
2 answers
118 views
Hi.
I create a Test List with several tests, but I have a problem the browser close between the test.
What can I do to ensure that the browser keep running?
Natasha
Top achievements
Rank 1
 answered on 06 Dec 2011
5 answers
179 views
Hi,

We have an application based on Telerik components and ESRI map functionalities.

And while we recorded functional test with Telerik Test Studio  if we want to enter coordinate field (latitude and longitude) by selection it from the map , Telerik Test Studio records coordinate. But after if we want to replay this recorded test ,Telerik Test Studio selects the coordinate which is different than recorded one. 

We want to learn that do you support the map interaction activities or not?

Thanks.
Stoich
Telerik team
 answered on 06 Dec 2011
1 answer
147 views
Hi,

I am using Visual Studio plugin of Telerik test studio (Mbunit cases) to automate my web application. On my site there is a link which takes around 120 seconds to navigate to next page.
The issue I am facing is that the during playback the link gets clicked but the following execption is generated before navigation to next page where i want to verify assertions.

System.TimeoutExceptionWait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()


How can i handle this, i have even increaed the WaitOnElement timeout to 180000, but thats of no use.
Stoich
Telerik team
 answered on 05 Dec 2011
1 answer
95 views
I'm sure there is a command in Visual Basic, but I'm not sure what it is.

I have this VB code that builds a command but while I can get the command to display in the console, I can not figure out how to get the code to execute in the code behind file.

Here is the code:
Dim intMonth As DateTime = DateTime.Now.AddDays(-1)
Dim format As String = "m"
Dim strMonth as String
strMonth = (intMonth.ToString(format))
strMonth = strMonth.Replace(" ", "")
Console.WriteLine("Pages.OrchidTest0."+strMonth+"Link"+".Click(false)")

and what I want to execute (for today for example) would be:

Pages.OrchidTest0.November30Link.Click(false)

Thank you in advance
Chris
Anthony
Telerik team
 answered on 02 Dec 2011
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
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
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?