Telerik Forums
Test Studio Forum
0 answers
112 views
After successfully executing a Test List, the  results are logged in the calendar on the results tab - but when I click on the Test List name in the calendar, the specific results for each of the ten tests in the list do not show on the Test Results pane on the right side.  Instead, it says 'Fail - 8 tests passed out of 0 executed. The run was interrupted! Error deserializing a run result file '[file name listed]'. Looking at the state of the application I know the test made it to at least the 9th test in the list. I am wondering if this is occurring because the test list is too long? Or if there is any kind of work around for me to see what step the test failed on.  
Betsy
Top achievements
Rank 1
 asked on 21 Oct 2022
1 answer
53 views
Can I Test (whith Test Studio) a Oracle Forms Desktop application?
Elena
Telerik team
 answered on 12 Oct 2022
1 answer
85 views

Hello,

I have a coded step "Login_FrameworkTelerik" that requires input such as "User email".

When I add the coded step in my test, I would like to be able to set the "User email" in a way similar to when I provide Text to the built-in action "enter text".

Thank you for the feedback

Elena
Telerik team
 answered on 12 Oct 2022
1 answer
77 views

After following the steps at https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions, I am having an issue with the name of the DLL placed in C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\.

This is a follow up to the issue mentioned at https://www.telerik.com/forums/writing-to-executioncontext-manager-log-in-oninitializedatasource#1581852. I'm starting a new thread as this is a different issue than the subject of the prior thread.

Visual Studio is creating TelerikExecutionExtension.dll. I copy this DLL to C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\ and when I run a test. The method OnInitializeDataSource fails to execute. If I copy TelerikExecutionExtension.dll to C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\ClassLibrary.dll (or simply rename the existing DLL) and rerun the test, the method OnInitializeDataSource is executed. The DLL name does not appear to impact the other methods within the IExecutionExtension implementation.

Telerik Test Studio Trace Log for both runs show the DLLs found and loaded, albeit in alphabetical order:

Only when named ClassLibrary.dll does the code in OnInitializeDataSource write to the log (red below). OnBeforeTestStarted and OnAfterTestCompleted write to the log regardless of DLL name (green below).

I can provide full logs from "C:\Program Files (x86)\Progress\Test Studio\Logs" and "C:\WebAiiLog", along with the test and test list files if a non-public drop location is available.

Thank you.

Elena
Telerik team
 answered on 12 Oct 2022
1 answer
67 views

I have a test A, which has a single vairable that it uses in its data.  This variable is not in Test B or Test C.

Test A calls Test B, Test B has its own data (FILENAME, ISDEFAULT), but Inherit Parent Data Source is false in Test B.

Test B Calls Test C, and Test C has Inherit Parent Data Source set to true and the same data columns as Test B (FILENAME, ISDEFAULT).  In TestC.  When I run my test, the FILENAME variable is empty. 

It seems like Test C is using Test A's data, and not Test B's. 

Any suggestions?  Is this scenario something that is not possible?

Elena
Telerik team
 answered on 04 Oct 2022
1 answer
158 views

Hi,

I tried to run the test list on Remote VMs but its failing, the message 

SendInput: Failed. Win32Error: 
InnerException:
System.ComponentModel.Win32Exception (0x80004005): SendInput: Failed. Win32Error: 
   at ArtOfTest.WebAii.Win32.Win32NativeMethods.SendInputInternal(Input[] inputData)
   at ArtOfTest.WebAii.Win32.Mouse.HoverOver(Int32 x, Int32 y, Boolean useExecutionDelay)
   at ArtOfTest.WebAii.Win32.Mouse.HoverOver(Point pointToHoverOver)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DesktopActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------

Is there any way to fix the issue ?

 

Thanks

Plamen Mitrev
Telerik team
 answered on 03 Oct 2022
1 answer
84 views

I followed the instructions at https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions and I am successfully getting and using a dynamic dataset from the method OnInitializeDataSource. My problem is that output written to executionContext.Manager.Log is not presenting in the log file. The log file is:


Overall Result: Pass
------------------------------------------------------------
'9/30/2022 10:47:21 AM' - Executing test: 'WebTest1', path: '_POC\WebTest1.tstest.'
'9/30/2022 10:47:21 AM' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2022.3.914.3'.
'9/30/2022 10:47:21 AM' - Starting execution....
'9/30/2022 10:47:25 AM' - Detected custom code in test. Locating test assembly: TestProject1.dll.
'9/30/2022 10:47:25 AM' - Assembly Found: D:\TelerikTestStudio\VNAV_Playground\bin\TestProject1.dll
'9/30/2022 10:47:25 AM' - Loading code class: 'TestProject1.WebTest1'.
------------------------------------------------------------
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - Detected DataDriven Test. Starting data iterations.
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - [Iteration #1: (ENV=Env2)(TEST_ITERATION=1)(VNAV_ID=V00000001)]
------------------------------------------------------------
Overall Result: Pass
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - LOG: Executing VrsExecutionExtension: OnBeforeTestStarted
'9/30/2022 10:47:25 AM' - Using 'EdgeChromiumHeadless' version '105.0.1343.53' as default browser. 
'9/30/2022 10:47:25 AM' - Using Telerik Components Version: 'Latest'
'9/30/2022 10:47:25 AM' - Using 'https://xxx/xxxx' as base url.
'9/30/2022 10:47:25 AM' - LOG: ********** This is my test code ********
'9/30/2022 10:47:25 AM' - 'Pass' : 1. New Coded Step
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - Overall Result: Pass
'9/30/2022 10:47:25 AM' - Duration: [0 min: 0 sec: 19 msec]
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - LOG: Executing VrsExecutionExtension: OnAfterTestCompleted
------------------------------------------------------------
'9/30/2022 10:47:25 AM' - Overall Result: Pass
'9/30/2022 10:47:25 AM' - Duration: [0 min: 0 sec: 22 msec]
------------------------------------------------------------
'9/30/2022 10:47:26 AM' - Test completed!



My class is:


	public class ExecutionExtension : IExecutionExtension
	{
		public void OnAfterTestCompleted(ExecutionContext executionContext, TestResult result)
		{
			executionContext.Manager.Log.WriteLine($"Executing {nameof(VrsExecutionExtension)}: {nameof(OnAfterTestCompleted)}");
		}

		public void OnAfterTestListCompleted(RunResult result)
		{
		}
		public void OnBeforeTestListStarted(TestList list)
		{
		}

		public void OnBeforeTestStarted(ExecutionContext executionContext, Test test)
		{
			executionContext.Manager.Log.WriteLine($"Executing {nameof(VrsExecutionExtension)}: {nameof(OnBeforeTestStarted)}");
		}

		public DataTable OnInitializeDataSource(ExecutionContext executionContext)
		{
			executionContext.Manager.Log.WriteLine($"Executing {nameof(VrsExecutionExtension)}: {nameof(OnInitializeDataSource)}");

			DataTable dt = null;

			... // code excluded but is successfully populating and returning dt

			return dt;

		}

		public void OnStepFailure(ExecutionContext executionContext, AutomationStepResult stepResult)
		{
			executionContext.Manager.Log.WriteLine($"Executing {nameof(VrsExecutionExtension)}: {nameof(OnStepFailure)}");
		}
	}

In the log, I can see that OnBeforeTestStarted and OnAfterTestCompleted successfully write to the test log, but OnInitializeDataSource does not. Any thoughts on what I might be missing here?

On a somewhat unrelated note, it appears that the name of the DLL created as part of this project has to match some specification. This was not apparent to me while following the instructions at https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions. Naming the DLL ClassLibrary, ClassLibrary1, or ClassLibrary2 all appeared to work. Naming it ExecutionExtension.dll did not. If there is a requirement, noting it on the coded-samples page might prove helpful for anyone else stumbling their way through this for the first time.

Thank you.

Plamen Mitrev
Telerik team
 answered on 03 Oct 2022
1 answer
67 views
How do I get the latest version of Test Studio Runtime
Elena
Telerik team
 answered on 29 Sep 2022
1 answer
148 views

I have a very basic 'log into Telerik.com' test that I made. When I try to execute the test with Chrome it keeps crashing because I'm already logged in - so it can't perform the test of typing my name and password. However, my actual Chrome has had its cookies and histories and cache cleared. If I try to log in to Telerik with my Chrome browser, there's nothing saved. But when I run my test, there's all my old information, saved and cached. I even uninstalled Chrome and it's still happening.

 

So, where exactly is Test Studio storing this information, and how do I clear it without having to add a "clear cache" step to every test?

Plamen Mitrev
Telerik team
 answered on 27 Sep 2022
0 answers
133 views

I'm trying to run a desktop test using excel.  I have mapped excel via the application path.

When I press record excel opens but I cannot record anything, the recording toolbar does not display.

From my log file;

[09/23 14:10:18,Telerik.TestStudio.exe(19524:16),Recording] RecordViewController.ApplicationLaunched() : Error launching the recorder. Error: Launched desktop application exited.

Can you please advise what the issue may be here.

Thanks

Adrian

Adrian
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 23 Sep 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?