Telerik Forums
Test Studio Forum
1 answer
68 views

I am working on issue where the user copies text from Microsoft Word to this Telerik Textbox and the format gets messed up. Only happens in the IE browser. Anyone else run into the same issue? 

Thanks, 

Nia 

Elena
Telerik team
 answered on 07 Jun 2016
7 answers
135 views
Hello,

I am trying to aumate UI tests to mu Silverlight App.

I'll need to setup my Oracle database before I run some tests. And cleanup my database after I run the test.
I have a C# sample code that does this operation but the compilation is not correct.

I created a script step and I copy this code there as: 

[CodedStep(@"New Coded Step")]
        public void connectDB_CodedStep()
        {
            string connectionString = "User Id=myusername;Password=mypassword;Data Source=(DESCRIPTION=" +
                                        "(ADDRESS=(PROTOCOL=myprotocol)(HOST=myhost)(PORT=myport))" +
                                        "(CONNECT_DATA=(SID=mysid)));";
            
            using (OracleConnection connection = new OracleConnection())
            {
                connection.ConnectionString = connectionString;
                connection.Open();
                Console.WriteLine("State: {0}", connection.State);
                Console.WriteLine("ConnectionString: {0}",
                                  connection.ConnectionString);


                OracleCommand command = connection.CreateCommand();
                OracleCommand command1 = connection.CreateCommand();
                string sql = "CREATE TABLE TABLE_NAME (First_Name char(50))";
                command.CommandText = sql;
                


                OracleDataReader reader = (command).ExecuteReader(); 
                while (reader.Read())
                {
                    string myField = (string)reader["MYFIELD"];
                    Console.WriteLine(myField);
                }
            }
        } 

I know that this code is correct because I've already tried on a Visual Studio project.
My doubt is where I need to copy this sample to create my new table and delete it after the test.

Can you help me?

Thank you.

Best regards,
Marie
Elena
Telerik team
 answered on 06 Jun 2016
3 answers
310 views

Hi

I am struggling to access Kendo Date Picker from a code step in Test Studio.

KendoCalendar calendar = ActiveBrowser.Find.ById<KendoCalendar>("expiryDate");

I want to set the date from the code step ( I am iterating over a predefined expiry values) 

but I always get NULL and nothing is returned.. any idea why ? Test Studio version 2016 (downloaded it last week)

 

My jsp has the following:

...

..
    <input type="text" id="expiryDate"     style="width:180px;"
        serializedDate="${message.getExpiryDate().getTime()}"  
        name="expiryDate"   
        required 
        data-expiryDateInPast-msg="<s:message code='admin.managemessage.validation.expiryDate.inpast'/>"
               validationMessage="<s:message code='admin.managemessage.validation.expiryDate.empty'/>" 
        />

...

...

$("#expiryDate").kendoDatePicker({
                                  
        }).on('keydown',function(evt){
               if(evt.keyCode == 9) {
                    return true;
               }
               return false;
        }).on("paste",function(e) {
              e.preventDefault();
        });

...

...

Ivaylo
Telerik team
 answered on 03 Jun 2016
7 answers
120 views

Hello

I hope you can help - I am trying to record and playback tests on Aurelia, a SPA Framework that we have started using but, when i play back the test - it cant find any of the elements or properties in the DOM so fails.

Any help you have would be greatly appreciated!

Thanks

Maria

Ivaylo
Telerik team
 answered on 03 Jun 2016
1 answer
185 views

I am supporting a tester who does not seem to be able to access the Internet using the Test Studio application. He is using a dedicated domain test user account to logon to test studio and I have verified that this user can gain access to the internet via a browser, however when the tester tries to run a test with an IE browser it is as though he cannot gain access to the internet through our web appliance and he is getting 'page cannot be displayed' message.

I have looked for areas in the software where a web proxy could be configured but have found no setting for it. He is using version 2015.1

Nikolay Petrov
Telerik team
 answered on 03 Jun 2016
2 answers
206 views
Hi. We are currently testing in different Virtual Machines, what we do is change the 'FileUploadPath' for each virtual machine. I just want to ask how do I create a FileUpload (Coded) step with Dynamic path so that we don't need to change the path every time we do a test on other machines. I'm looking forward to your answers. Thank you very much! :) 
Aaron
Top achievements
Rank 1
 answered on 02 Jun 2016
1 answer
85 views

Hi there,

In the code-behind I like to be able to invoke a click on a menu item and find this menu-item by name or automation-id. By adressing the elements by name you do not have problems when you add menu items.

I can give the RadMenu a name and find it with Find.ByName. However If I give a RadMenuItem a name it does not show up in the DOM tree.

Antoher solution might be to loop trough the RadMenuItems but still I like to be able to adress one of them.

Do you know a solution?

Thanks,

Richard

Boyan Boev
Telerik team
 answered on 02 Jun 2016
3 answers
371 views

how to find nested elements within the ArtOfTest.WebAii.ObjectModel.Element.

I want to a span element within a form. The form has a unique attribute, span element does not have unique attribute. We cannot go by TagIndex, since the content is dynamic.

We would like to use Element objectmodel and not HtmlControl type. The element has the property FindUsedExpression, but there is no option to find the nested element.

sample code:

                Element parent = Manager.ActiveBrowser.Find.ByExpression(parentattribute); // parent
                if (parent != null) {

                    Htmlcontrol control = parent.As<HtmlControl>();
                    HtmlControl child = control.Find.ByExpression<HtmlControl>(childattributes); // child ---- i don't want
                    if (child != null) {
                        child .Focus(); // focus;

                    }

                }

regards

govind

Boyan Boev
Telerik team
 answered on 30 May 2016
3 answers
93 views

The Element EnumerationType returns value "Other" for <form></form> in version 2016.1.330

As per the Enumeration Type should return a value of 19 for <form>

 

When we use the Element.TagName returns the element form.

This seem to be a bug in the release.

Ivaylo
Telerik team
 answered on 26 May 2016
1 answer
40 views

Has anyone else had problems with Visual Studio after installing v. 2016.1.330 of Test Studio?? 

I am on the 30 day trial at present. After installing the new release, I started encountering fatal problems in Visual Studio when trying to load solutions, where previously I had not had such issues.I had to close VS down for 'not responding' and tried it again several times.  After uninstalling Test Studio, Visual Studio was back to its previous level of behaviour, and I could actually load projects / solutions.

Looking at the Windows Event Viewer, there were many errors relating to Art of Test.... just wondered if anyone had experienced anything similar.

 

Ivaylo
Telerik team
 answered on 26 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?