Telerik Forums
Test Studio Forum
1 answer
154 views

Hello, I am new to testStudio, and somewhat new to C#, so this may have an obvious answer, but it seems pretty straightforward...

 

[CodedStep(@"Verify 'logged in' status")]
        public void Verify_logged_in_status()
        {
            Pages.KDHERadon2.SignOutRibbonButton.Wait.ForExists(7000);
            if (Pages.KDHERadon2.SignOutRibbonButton.IsVisible() == false)
            {
                this.ExecuteTest("Login to Radon.tstest");
               
            }
               
        }

 

What I want to happen is if the log out button is not visible, I want the application to execute the log-in 'test' to get logged in. It waits for the element to be visible for 7 seconds, and if it is not visible, it executes the log in test. 

 

But instead of this, this coded step simply 'fails'. I do not understand why this is happening, can someone please enlighten me. 

Plamen Mitrev
Telerik team
 answered on 23 Oct 2019
1 answer
252 views

hi im new to this community :) why im getting this error when im trying build and execute a radtextbox for store text in variable from input in textbox?

its like same error for days i fix code everytime using bug submit but useless

 

can someone help :) appreciated

the error :

[ Compiler ]
18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(55,43) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(56,14) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
18:27:31 'INFO' > Build Failed

 

codedstep code:

 

using Telerik.TestStudio.Translators.Common;
using Telerik.TestingFramework.Controls.TelerikUI.Blazor;
using Telerik.TestingFramework.Controls.KendoUI.Angular;
using Telerik.TestingFramework.Controls.KendoUI;
using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;

namespace TestProject4
{

    public class WebTest : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]

        private Pages _pages;

        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }

        #endregion
        
        // Add your test methods here...
    
        [CodedStep(@"New Coded Step")]
        private void CompleteWithZeros(RadTextBox textbox, int length)
 {
     var text = CompleteWithZeros(textbox.Text, length);
     textbox.Text = text;
 }
            
        }
    
}

 

Plamen Mitrev
Telerik team
 answered on 22 Oct 2019
3 answers
71 views

Is there any recommendation on about how many virtual users can run against a machine with certain specs?

 

We're trying to make a determination how many machines we'll need to procure to run the load we're needing.

Plamen Mitrev
Telerik team
 answered on 22 Oct 2019
1 answer
74 views

Hi, 

I have a test named Example. I want to use this Test multiple times in my test list.

But currently I am unable to do it. Once I selected the test one time, it is disabled and I cannot select it any more. 

 

Is there any way to add same test multiple times on test list ?

 

Regards, 

Nithya A

Plamen Mitrev
Telerik team
 answered on 18 Oct 2019
1 answer
71 views

Hi , 

 

I have my tests in my PC and running them daily. Since it takes a lot of time , I cannot parallely do other jobs.

So I decided to run the tests in remote machine with the Project stored in my Pc.

1. Is that possible ?

2. How can I do it? Could you please help me

 

Regards, 

Nithya A.

Plamen Mitrev
Telerik team
 answered on 18 Oct 2019
1 answer
66 views

Hi, 

I haven't used the Baseurl function earlier. I have recorded my steps for my project normally and running them in single server.

Now I want to run all my tests in the different server.

Current server : https://xxxx.com

New server : http://yy.xxxx.com

I have the below questions

1. If I havent used the baseurl earlier, then it is not possible to change the server name now ?

2. I have added the server name in the baseurl and change the compare mode to Baseurl , Provided the Baseurl in testlist - Then executed the test. One of my test got passed.. But others fails - It is not identifying the elements correctly in the new server. But in the current server, all the tests are runnning correctly. Could you please help me to pass the other tests in the new server.

 

Regards, 

Nithya A.

 

 

 

 

Plamen Mitrev
Telerik team
 answered on 18 Oct 2019
7 answers
87 views

I just started testing the email notification functionality of the test server, and I am having an issue with at least one of my test lists.  I know at least one of my other test lists doesn't have this issue so it isn't a general issue and may be specific to one of the tests in the list.

I don't actually have the XML file export enabled here, just HTML.  So it should only be dealing with the email body and the HTML.  Could there be something with text encoding where a test step description has a character that is allowed in the interface but isn't allowed in the export?

 

The log from the execution server is this.

[10/11 16:02:51,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Execution] PostListExecutionEmailer.OnAfterTestListCompleted() : Attempting to send email for job 38f7e14c-0301-4e1f-b974-4e10c21dcdd3
[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Error] XmlFileHandler`1.Export() : EXCEPTION! (see below)
     Situation: Error saving file in XML format.
     Outer Exception Type: System.ArgumentException
     Message: '', hexadecimal value 0x1B, is an invalid character.
     HRESULT: 0x80070057 (Official ID (if app.) = E_INVALIDARG, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_INVALID_PARAMETER)
     Call Stack:
          at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
          at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
          at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
          at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)
          at System.Xml.XmlRawWriter.WriteValue(String value)
          at System.Xml.XmlWellFormedWriter.WriteValue(String value)
          at ArtOfTest.Common.Design.XmlFileHandler`1.Export(String filePath, Dictionary`2 objectsWithPaths)

[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Error] RunResultHtmlExporter.Export() : EXCEPTION! (see below)
     Outer Exception Type: System.ArgumentNullException
     Message: Value cannot be null.
          Parameter name: path
     HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
     Call Stack:
          at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
          at System.IO.StreamReader..ctor(String path)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.BuildTempHtml(String filePath, String xmlFilePath)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.Export(String filePath, Dictionary`2 resultsWithPaths)

[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Execution] <>c__DisplayClass5_1.<JobFinished>b__3() : EXCEPTION! (see below)
     Situation: Exception in jobfinished plugin executionStatus
     Outer Exception Type: System.ArgumentNullException
     Message: Value cannot be null.
          Parameter name: fileName
     HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
     Call Stack:
          at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType)
          at System.Net.Mail.AttachmentBase..ctor(String fileName)
          at System.Net.Mail.Attachment..ctor(String fileName)
          at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.Mail.ResultMailSender.AddAttachment(String fileName)
          at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.Mail.ResultMailSender.SetRunResultAttachment(RunResult runResult, NotificationSettings settings)
          at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.PostListExecutionEmailer.OnAfterTestListCompleted(TestListExecutionStatus executionStatus, RunResult result)
          at Telerik.TestStudio.ExecutionManager.Notifications.ExecutionManagerNotificationService.<>c__DisplayClass5_1.<JobFinished>b__3(ITestListExecutionExtensionStatus extensionStatus)

Plamen Mitrev
Telerik team
 answered on 16 Oct 2019
15 answers
690 views

Hi all,

As I found this article previously and identified a Kendo drop down list as Kendo input, I recall myself being able to enter text into the drop down list using "Enter text ' ' into......" from the Step Builder.

However, recently when I tried again, I received error "Target '[Element: 'div:107']' is not a supported element to set text to.".

Is it my misunderstanding, memory haywire or this seems to be an issue after any Test Studio version upgrade?

The last time I was able to enter text into Kendo drop down was when I used trial account and at that time Elements Library still had the option "Edit in Live".

It should be around either November / December last year or early this year (again I don't remember the exact details).

Attached image is the properties for the Kendo drop down list I was trying to enter text into.

Elena
Telerik team
 answered on 15 Oct 2019
1 answer
73 views

The issue here is that when I create a bug in Jira Cloud and attach the results the results I get are different based on where I create it.  If I run a test manually from the project tab, click on the step details for a failed step, and submit a bug I get the detailed log files in the attachment.  If I run the test from a test list (either locally or remotely) the log files only contain a single line.  This affects both ExecutionLog.txt and FailedStepLog.txt.  I don't see why they should be different.  It is very hard to troubleshoot and issue without the full log.

I've been testing on two different servers, and I don't think it is particular to my environment.  I have the scheduling component installed.

Examples
Run from test list (test lists tab) - ExecutionLog.txt
Wait for condition has timed out

 

Run from test itself (project tab) - ExecutionLog.txt
...

'10/14/2019 4:35:34 PM' - 'Fail' : 5. Wait '5000' msec for url:'/Efficio/Opportunity/OpportunityDetail.aspxX'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out

Plamen Mitrev
Telerik team
 answered on 15 Oct 2019
3 answers
146 views
I'm working on keeping an active user session using the new functionality provided in the Execution tab of the Test Studio Test Runner.  These are "Keep Machine Awake" and "Reconnect to Console on Disconnect".  I see the option for "Run on start up", but I'm not really clear what starts the process and under what user it will run.  I don't see an actual service as having been installed in the list of Windows services.

I'm not sure if this matters.  I have noticed that when I've logged in as different users to run Test Studio during my testing of it I sometimes get an error message dialog which says "Error: Progress Telerik Test Studio Client application is already running!" which makes me think each time Test Studio starts it tries to start the local execution/scheduling server which seems like a bug since it was already started by another user.  I'm using the local execution and scheduling server built into Test Studio.  Should I install the standalone services even though everything will run on the same server?  I'm not even sure if this scenario is supported and maybe I should just stick to a single user account that uses Test Studio.

Lastly, for the redirection to console functionality, I had a really tricky issue where some of my scheduled tests wouldn't run in the scenario where I closed my remote desktop connection.  I used the video recording and notice that the page looked off and it was because the resolution of the console session was very low and that was somehow affecting mouse clicks (I believe) which ultimately led to the failure.  I don't see that there is any way to set a resolution that the tests will run under, but if the execution server is running on the console I would think that it would have the ability to change the resolution at least for the duration of test execution.  For now, I managed to change it using Dell's virtual console because I couldn't figure out a way to do it remotely using remote desktop.

Plamen Mitrev
Telerik team
 answered on 14 Oct 2019
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?