Telerik Forums
Test Studio Forum
0 answers
78 views
The issue that the team I am working with is facing deals with the load testing pieces of Telerik Test Studio. We are currently attempting to build a load test regarding our login procedure; however, the login portal we are using is Microsoft's Azure B2C Login Portal and as such we must follow their standards with request parameters . For the most part we have been able to do so by adjusting the parameters we send with custom dynamic targets. The primary issue is that one of our requests requires that the parameter be sent back as a base64 encoded string, yet Telerik Test Studio is automatically encoding the equal sign at the end of the request. The parameter is being retrieved from a custom dynamic target and while the request returns a 200 response, we are still receiving a warning message from the API as well as not receiving additional data that is required for future requests. When running the request with the same parameters through Postman we are able to receive the response request with no additional warnings and with all of the response data intact. Is there a way to edit the encoding settings of Telerik Test Studio so as to allow this situation to occur naturally?
Seth
Top achievements
Rank 1
 asked on 02 Jun 2021
1 answer
302 views

hi,

 

I'm trying to add coded step from step builder.Using telerik test studio plugin in visual studio professional 2019.

Empty step builder only displayed.I have tried to reinstall all the setup many times.But no luck kindly support me to resolve this issue.

Plamen Mitrev
Telerik team
 answered on 31 May 2021
1 answer
120 views

Hi, 

I have Databinding to my tests which picks the data from the excel or from localdata of the test. But databinding is not working when running in headless mode. 

Could you Please let me know if there are someways to fix this ? Thanks!

 

Regards,

Nithya A.

 

Elena
Telerik team
 answered on 25 May 2021
1 answer
188 views

Is it possible to be able to distribute a test list (like you can from remote execution) from Test Studio but calling it from Azure DevOps?
https://docs.telerik.com/teststudio/advanced-topics/build-server/azure-devops

Following the instructions mentioned above, it doesn't appear to provide insight to that.  Is there anyway to still leverage that functionality from the command line?

1 answer
112 views

Hi Team,

 

using CSS,  Added icon in empty autocomplete field to let the users know that is data can be assigned to that field by clicking or typing on it . So After added this icon scripts are failing.

I have recorder for one script after change was done.

It is recording as kendoAngularTextbox, but previously it is KendoAngularAutoComplete.

Please find the attachments for screenshot.

Is there any way to execute scripts without recording, because this feature was added in all other areas.

 

 

 

Thanks & Regards

Srilatha

Elena
Telerik team
 answered on 14 May 2021
1 answer
209 views

Hello, 

I'm using the connect to popup dialog to connect to a browser that is launched when clicking a link. I then do some actions in the second  tab which changes the URL, I then need to close the second browser, do I use the close popup dialog to close the second tab and just put the now chanced URL or do I use the URL I connected to. Right now I put the modified url in the close popup dialog, but sometimes it doesn't close the new browser tab and shift focus back to the first browser tab. 

I'm aware I can use a coded step to close that second tab, and use Manager.Browsers.count to count the tabs to ensure that second tab does close as long as I do a global browser count variable. If you believe that's the best way to go I can do that, but I wanted to make sure I was approaching it correctly.

Plamen Mitrev
Telerik team
 answered on 07 May 2021
1 answer
182 views

Hello,

I have created a test to log in via Azure Active Directory using Data Driven steps that get the login from XML file. 

I have ensured that all credentials are correct.

When I execute the test to log in, it shows this error (picture attached). But when I click the Next Button manually it works and goes to the next page (password page).  Any Ideas why it wouldn't work on the test but does work manually?

Kind regards,

Bella

Elena
Telerik team
 answered on 06 May 2021
1 answer
102 views

Hi,

We are using Telerik Test Studio 2017.1.207.0 and we implement custom DLL to launch or close our application.

Regularly, when calling the methods included in that code, the Test Freeze and nothing is done. I am putting the code below.

The problem concerns the call but not our code itself.

Currently the code is compiled in Debug / AnyCPU. Do you advise to compile that code in Debug or in Release mode ?

Is this problem known and is there a workaround ?

Is this problem fixed in latest version ?

Thanks in advance,

Best regards.

using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public class Utility
    {
        public static void StartCustomApp(Manager manager, ExecutionContext executionContext, string customAppPath, string args = "", int waitForWindow = 10000, int waitingTime = 10000)
        {
            Assert.IsNotNull(manager, $"Manager is null.");

            manager.ActiveApplication.MainWindow.Window.Minimize();
            manager.ActiveApplication.Detach(false);
            var executablePath = executionContext.DeploymentDirectory + customAppPath;

            Assert.IsTrue(File.Exists(executablePath), $"Can not found {customAppPath} path.");

            var appName = Path.GetFileNameWithoutExtension(customAppPath);

            // Prepare the process to run
            ProcessStartInfo app = new ProcessStartInfo();
            app.Arguments = args;
            app.FileName = executablePath;        

            Assert.IsNotNull(manager.LaunchNewApplication(app), $"Failed to connect to {appName}.");

            manager.ActiveApplication.WaitForWindow($"~{appName}", waitForWindow);

            System.Threading.Thread.Sleep(waitingTime);

            manager.ActiveApplication.MainWindow.SetWindowFocus();
            manager.ActiveApplication.MainWindow.Window.Maximize();
            manager.ActiveApplication.MainWindow.RefreshVisualTrees();
        }

        public static void connectToApp(Manager manager, string appName, bool closeAppOnDetach = false)
        {
            manager.Log.WriteLine(DateTime.Now.ToString()+" - Start connectToApp"+appName);
            Assert.IsNotNull(manager, $"Manager is null.");

            Assert.IsNotNull(manager.ActiveApplication, $"ActiveApplication is null.");

            manager.Log.WriteLine(DateTime.Now.ToString() + " - detach previous App");
            manager.ActiveApplication.Detach(closeAppOnDetach);

            var proc = Process.GetProcesses().Where(p => p.ProcessName.Contains(appName)).FirstOrDefault();

            Assert.IsNotNull(proc, $"{appName} is not running.");

            manager.Log.WriteLine(DateTime.Now.ToString() + " - connect to App " + appName);
            Assert.IsNotNull(manager.ConnectToApplication(proc), $"Failed to connect to {appName}.");

            manager.ActiveApplication.MainWindow.Window.SetFocus();
            manager.ActiveApplication.MainWindow.Window.SetActive();
            manager.ActiveApplication.MainWindow.Window.Maximize();
            manager.ActiveApplication.MainWindow.RefreshVisualTrees();
        }

        public static void CloseApp(string appName)
        {
            var runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName.Contains(appName));
            string executablePath = string.Empty;

            if (runningApp.Count() > 0)
            {
                foreach (var process in runningApp)
                    process.Kill();
            }
        }
    }
}

Elena
Telerik team
 answered on 04 May 2021
1 answer
153 views

Hi,

We bought few years ago the Tekerik Test Studio 2017.1.207.0.

When we run tests, and application windows or popup are closed, we frequently have the message :

Failure Information:
~~~~~~~~~~~~~~~
Collection was modified; enumeration operation may not execute.
InnerException:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at ArtOfTest.WebAii.Core.Manager.get_ActiveWpfWindow()
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

We tried to add a wait command after the close but it does not succeeded.

Is there a workaround to bypass this bug ?

Is this bug fixed in latest version ?

Thanks in advance,

Best regards.

Elena
Telerik team
 answered on 04 May 2021
1 answer
240 views

I am trying to open our web site which is located abroad so there is a considerable delay between request and response. Sometimes it takes up to 10-15 seconds to load the page and while waiting for it Test studio is throwing the following error (but after all it loads the page though):

 

'30/04/2021 14:46:42' - 'Fail' : 6. Navigate to : eHarmony by NavigateURL variable
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: 'Navigate to : eHarmony by NavigateURL variable'.
InnerException:
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T 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.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)
   at UpdateIdkynScreenFull.YN_GeneralManagerLoginProduction.YN_General_Manager_Login__CodedStep2() in c:\Automate\ATP%20Sources\eHarmonySecurity11\Logins\YN- General Manager Login .tstest.cs:line 111
------------------------------------------------------------

 

Has someone faced this issue and how could you handle this, please? I know that I can put "continue on failure"=true, but then the overall result of the test will be shown as failed

Plamen Mitrev
Telerik team
 answered on 03 May 2021
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?