Telerik Forums
Test Studio Forum
1 answer
225 views

 

Hi,

Since the last test studio update, I cannot impement our app anymore. When I try this with Android Application Configuration in Test Studio, I get the warning 'Unable to create APK: ERROR: Unknown option '--no-version-vectors'. 

We google this, and found that this was often because of an old version of Android SDK Build-Tools still installed on the computer next to a newer version. We updated Android SDK Manager and saw that Android SDK Build-Tools version 25.0.2 was visible next to version 21.1.2.

We deleted the version 21.1.2 and tried again, but this time we got the warning that Test Studio could not find Android SDK Build-Tools.

Can you help us how to solve this?

Kind regards,

Emine van Graafeiland

PTI

 

Nikolay Petrov
Telerik team
 answered on 23 Feb 2017
10 answers
155 views

Hi,

I'm trying to capture the "friendly" name values for list items.  Based on the information I've been able find, I've prioritized the <li> tag in the Project settings, but when I click the list item, instead of recording the list item name value, I'm getting the list item id value to appear in my script.  Given that the list item ids are dynamically generated and can change when new list items are added, I'm trying to get the static name property to be recorded in my script.  This will greatly improve the readability and robustness of my scripts.

I've attached a screenshot showing:

1.  The UI of the actual dropdown and its associated code in the DOM

2.  My project settings showing the prioritized <li> tag

3.  How the elements are recorded in my scripts, and what I'm trying to achieve.

I've tried numerous settings, but the result is always the same.  Any help in this area will be greatly appreciated.

Thanks much,

Dan

Elena
Telerik team
 answered on 22 Feb 2017
2 answers
298 views

I've always had issues with these two "Calc" buttons, even with Selenium. 

I'm using Test Studio and simple left click does not work. I selected to code the step, one method prints errors no click, the other no errors still no click.

By the way, both Calc pictures seen in screenshot attached, have the same code.

 

1) By Attributes | Result: Error when executing

        [CodedStep(@"Desktop command: Calc1yClick")]
        public void Calc1yClick()
        {
            // Desktop command: LeftClick on CalcButtonTag
            HtmlControl Calc1yClick = Manager.ActiveBrowser.Find.ByAttributes<HtmlControl>("div class=btn btn-sm btn-primary", "data-bind=click: $root.calc, disable: !$root.isCalcEnabled()", "div class=btn btn-sm btn-primary", "data-bind=click: $root.calc, disable: !$root.isCalcEnabled()", "TextContent=Calc");
            Calc1yClick.Click();
        }

 

1) By XPath | Result: Finishes with no errors, but does not click on Calc button

        [CodedStep(@"Desktop command: Calc1yClick")]
        public void Calc1yClick()
        {
            // Desktop command: LeftClick on Calc1yClick
            HtmlControl Calc1yClick = Manager.ActiveBrowser.Find.ByXPath<HtmlControl>("/html[1]/body[1]/section[1]/div[1]/ul[1]/li[1]/a[1]/button[1]");
            Calc1yClick.Click();
        }

 

Actual Code:

<div class="pull-right" data-bind="visible: $root.inputsEnabled()">
    <button class="btn btn-sm btn-primary" data-bind="click: $root.calc, disable: !$root.isCalcEnabled()">Calc</button>
</div>

 

CssSelector extrated from Inspect: 

#rorInputsdbf047fe-1781-4f71-8f62-71bea1699aa6 > form > div > div:nth-child(2) > div > button

 

XPath extracted from Inspect: 

//*[@id="rorInputsdbf047fe-1781-4f71-8f62-71bea1699aa6"]/form/div/div[2]/div/button

Elena
Telerik team
 answered on 20 Feb 2017
1 answer
61 views

Our team is planning to Load test our application which requires User Login. We have Test Studio (Ultimate) and already placed order for 10,000 VUs package. I am having confusion understanding the difference between these two ways of load testing. I have created automated scripts including signing in and other actions.

One way i found is, assigning  VUs to the same test with no actual username/passwords. Recording the traffic using single user interaction.

Other one is to bind a data source containing that many actual usernames and passwords. This will be Data Driven Load Testing if I am not wrong.

So to understand which is tha one we need and useful to us, Can I get more knowledge about the things I have mentioned above.

Thanks 

Elena
Telerik team
 answered on 20 Feb 2017
1 answer
104 views

Hello, it's me again :)

I have multiple websites :

  • http://site1.com/fr
  • http://site1.com/en
  • http://site2.com/fr
  • http://site2.com/en
  • http://site3.com/fr
  • http://site3.com/en

I use the baseUrl concept with FulPath settings for the recording and it's perfect.

Do you know how I can launch all my tests with differents baseURL without any test duplication ?

Can I add a variable in my test list and use it in each test ?

All my website use the SAME tests. BaseURL is the only change. So I don't want to duplicate all the tests. (This can create errors in case of forgetfulness.)

Thank you very much.

 

Elena
Telerik team
 answered on 20 Feb 2017
3 answers
102 views

Hi everybody !

1) I want to use Test Studio Mobile in Genymotion application (or an other emulator equivalent).

Is TSM compatible ? 

I need to test my website on differents devices on my virtual machine. (so I need emulator).

 

2) Webtest on iOS don't work on my machine.

I have an iPad Pro 9.7 and the device is "connected" on the telerik app. My ipad is present in TSM but the green arrow (launch test) is not available. If I click on my android device, the arrow is available but not with my ipad... Why ?

 

Thank you very much.

Elena
Telerik team
 answered on 20 Feb 2017
3 answers
233 views

We tried to automate the popup in desktop application,unfortunately it is  not recording.

Please help on this

 

Hoping for reply,thanks in advance

Nikolay Petrov
Telerik team
 answered on 20 Feb 2017
1 answer
95 views

Part of one of the scenarios that I'm putting together requires me to create a unique name for a file.  Ideally, it would be test_workflow1, test_workflow2, etc. with the number on the end ascending.  My question is:  Is it possible to put in a coded step something that could possibly know to increment the name of the file? and if it is possible how would I go about doing so?  Also, would it be better to simply add a random number to the end of the file name?

 

Thanks

M

 

Elena
Telerik team
 answered on 17 Feb 2017
1 answer
160 views

My task is to write a test script to navigate to our news page, click on the first story (url), click a button to return to the news topics, and iterate through all of the urls contained on the page.  Not only are the names dynamic, but they change daily in quantity as well, so I need it written in a generic way as opposed to recording it by clicking on the actual link.

I tried writing a step to navigate to the href that contains the generic 'starts with' portion of the URL, my next plan is to extract the full text of that URL, click URL, then click 'return to news topics'.  Is this something that can be written in Telerik or must I rely on writing code? I'm just honestly lost trying to determine the best way to go about this without resorting to writing code.  Any assistance or advice would be greatly appreciated.

Thank you!

Debi

Elena
Telerik team
 answered on 17 Feb 2017
1 answer
85 views

Hi guys, 

Have questions in regards to Telerik elements. My project is located in TFS source control and it contains several folders that contains scripts(Elements1.png). 

Some of these scripts are not maintained and i was in the midst of trying to fix the outdated scripts when i encountered a big issue. I found out one of the step in the scripts have it's elements outdated so in order to fix it, i deleted the step and recorded a new step. But when i try to run this particular script(Element2.png), i couldn't even compile it and the error was pointing to some other script even tough i did nothing to that script(Element3.png). 

After looking at the issue even further, i found that running a particular script not only compiles that script, it also compiles the whole project and deleting the steps also deletes the element from that step.  And because Element3.png coded step calls the deleted element, the whole project compilation fails. 

I tried changing the new element name to the same name as the old element but when i did this, the project seems to compile but the playback is not happening. 

Is there work around to this issue? It's quite a major obstacle for me as due to this, i can't do any test scripts maintenance as whenever i delete a step in a script, the element used is also deleted and since Telerik is compiling the whole project to run the playback the other scripts is affected as well. 

I hope it the explanation made sense to you :) 

Thanks,

Best Regards,

Pravin
praja@dongenergy.dk

Elena
Telerik team
 answered on 16 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?