Telerik Forums
Test Studio Forum
9 answers
101 views

Hi , 

I am unable to record test cases. I did go through the steps mentioned , but most folders are not same. Can you please help me with steps to record,  create test cases and run the test cases.

 

Below error was displayed when clicked on setting and choosing android sdk location

 

1. Aapt.exe doesn't exist in the specified location: C:\Users\noorain.adeeb\AppData\Local\Android\Sdk\build-tools\\aapt.exe

 

Thanks,

Noorain Adeeb



Shtilianov
Telerik team
 answered on 12 Jul 2018
3 answers
193 views

Hi All,

We have few desktop applications, which has developed using .NET technologies and Java as well. I tried recording script using Test Studio and it was rejected as the application is not WPF app.

Is there any way to automate these non-WPF based applications?

 

Thanks,

Palani

Elena
Telerik team
 answered on 04 Jul 2018
9 answers
263 views

Hi, Please see the code below...

            HtmlTable T2 = ActiveBrowser.Find.ByXPath<HtmlTable>("//*[@id='SystemClientsGrid']/div[2]/table");
            HtmlTableCell C2 = T2.Find.ByContent<HtmlTableCell>("l:ZZ");
            Log.WriteLine(C2.TextContent);
            string str1 = this.GetExtractedValue(C2.TextContent).ToString();

My Code is working fine till second last line as i can verify it in log. Last line not working.

It is throwing below mentioned error:

"The extracted variable 'ZZ' does not exist in the store. Make sure there is an extract step that has executed before executing this step."

 

 

 

Elena
Telerik team
 answered on 29 Jun 2018
7 answers
210 views

Team,

 

I am unable to Click on "OK" on a Confirmation Dialog. This step is very important in my script. Please guide me.

I have seen Documentation regarding this and tried in many ways. But still no go. Attached the Snapshot

 

Here is the code

using ArtOfTest.WebAii.Win32.Dialogs;
<br>Manager.Settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;<br>ConfirmDialog cd = ConfirmDialog.CreateConfirmDialog(ActiveBrowser, DialogButton.OK);<br>Manager.DialogMonitor.AddDialog(cd);<br>Manager.DialogMonitor.Start();<br>cd.Window.Close();
Elena
Telerik team
 answered on 29 Jun 2018
5 answers
266 views

Hello,

I am using Test Studio to test our webpage.  Here's the scenario:

1) The user navigates to an URL

2) Logins and by entering their credentials

3) Selects a menu item from the drop-down menu when the user hovers over a menu item on the top bar menu.

4) A new tab opens up with the specified page in the same browser.

Knowing what I read, you want to avoid testing tabs, so open the specified page in a new window?  Ok, that's fine but how do I get Test Studio to run the scripts in the new browser page?  Should I proceed with or just create tests using tabs?

If that one was easy, how do I check the existence of a specified text in a drop-down menu?  I tried using the recorder and the highlighter but I couldn't get it to work; the drop-down menu would disappear when using the highlighter.

Thank you

Peter

Vera
Telerik team
 answered on 26 Jun 2018
6 answers
68 views

Hi,

we are facing a problem with the jUnit export of the ArtOfTest.Runner, it happens very often that the exported jUnit file is in the wrong format.

Sometimes it looks something like this:

<testsuites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <testsuite name="XXX" timestamp="2018-06-19T09:14:10Z" hostname="XYZ" tests="8" failures="0" errors="0" time="631.2858114">
    <testcase name="Test1" time="0.4940152" />

     ...(all of the tests)

  </testsuite>
</testsuites></testsuites>>

Or like this:

<testsuites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <testsuite name="XXX" timestamp="2018-06-18T19:09:09Z" hostname="XYZ" tests="8" failures="1" errors="0" time="679.4595394">
    <testcase name="Test1" time="5.6998895" />

    <testcase name="TestN" time="211.6068644">
        <failure>

            ...The correct failure message...

        </failure>
    </testcase>
  </testsuite>
</testsuites>
</testsuites>

 

Thanks for checking the problem,

Greg

Elena
Telerik team
 answered on 25 Jun 2018
7 answers
170 views

Hi,

we are facing a problem with the ArtOfTest.Runner, after completing the tests the program never quits. The longest duration of the test we ran was two days, which we had to cancel. The error occurs very often. We are using the ArtOfTest.Runner from VSTS, but the failures also occure on the machine itself as seen in the console. The machine with the Test Studio is a VM in Azure that connects on startup via VPN to the right webserver.

The call is "C:\Program Files (x86)\Progress\Test Studio\Bin\ArtOfTest.Runner.exe" list="C:\Users\XXX\Documents\XXX.TelerikTestStudio\TestLists\XYZ.aiilist" persistOnEachStep=true junit settings="C:\Users\XXX\Documents\XXX.TelerikTestStudio\Environment\test.config" also with staging.config which is basically same, but has another URL.

Nothing shows up in the logs.

Note: We are also facing a problem with the jUnit parameter xyz.junit.xml not beeing in right format. I opened another thread for this.

 

Thanks for helping in advance,

Greg

Elena
Telerik team
 answered on 25 Jun 2018
7 answers
161 views
I am trying to locate a number of elements which are structurally related to a known element in the hierarchy; in this case, finding all the td cells in a single column of a table. I am trying to use a FindExpression as recommended in the user guide, but it is failing with an error

InnerException:
System.NotSupportedException: Find.All is currently not supported for expressions that have a hierarchal dependency

My code works like this:

HtmlFindExpression expression = new HtmlFindExpression("tagindex=td:3");
IList<Element> foundelements = tablecontrol.Find.AllByExpression(expression);
Note that the expression I am using is very similar to one of the expressions in the user guide (""tagindex=td:0"").

The code compiles without problems, but at runtime it throws the exception as above. What do I need to do to use a find expression to locate the td elements in this way?

P.S. See attachments for a simple worked example.
Elena
Telerik team
 answered on 18 Jun 2018
4 answers
193 views

Does test studio have some feature to achieve this: use test case like a function, create step with custom input parameter.

I know data source can somewhat do this, but it is not flexible.

Suppose we want create a scenario, User A login the system, publish a product, User B login to buy the product, User A login the process the order. A and B can vary from time to time.

Can we easily achieve this by assembling steps?

Elena
Telerik team
 answered on 18 Jun 2018
7 answers
145 views
Hello,
I am just trying out testStudio and created a simple record and playback in which I created a new user account using some our internal website. This test would fail next time because we would throw a 'duplicate account' error. Is there a way to have some kind of teardown/cleanup after a each test case ends in these simple record and playback tests ? What about other more advanced tests ?
Elena
Telerik team
 answered on 18 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?