Telerik Forums
Test Studio Forum
3 answers
93 views

Hallo,

i have a problem with Teamcity and tests with coded steps in MSTest.

We use the Telerik Test Studio to write tests with and without coded steps. This Tests will be executed on a Teamcity Buildagent. But the tests with coded steps always fails. The Buildagent can not find the .cs file. The try to add the .cs file to the  included assemblies result a error Message that .cs is not a valid test file.

The complier in Telerik Test Studio show no errors.

This ist the Build log from Teamcity:

--Start--

[12:38:54]AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung
[12:38:54]------------------------------------------------------------ '03.03.2017 12:22:21' - Executing test: 'AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung', path: 'Startseite\Datenpflege\Artikeldaten\VGFB\Grundeinstellungen\AMDP - Regression - VGFB - Grundeinstellungen- Kurzbezeichnung.tstest.' '03.03.2017 12:22:21' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2017.1.207.0'. '03.03.2017 12:22:21' - Starting execution.... '03.03.2017 12:22:23' - Detected custom code in test. Locating test assembly: RegressionAmdp.dll. '03.03.2017 12:22:23' - Failure detected during execution. Details: ------------------------------------------------------------

'03.03.2017 12:22:23' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: C:\BuildAgent\work\bf1d8a2ab94255f3\afradmin_PCCIS83 2017-03-03 12_04_02\Out\RegressionAmdp.dll bei ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder) bei ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder) bei ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult) bei ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command) ------------------------------------------------------------ '03.03.2017 12:22:24' - Test completed!

--End--

Thank for your help.

André

Nikolay Petrov
Telerik team
 answered on 13 Mar 2017
1 answer
115 views

Hello,

 
I've added the "html" option to the ArtOfTest.Runner command line call, but it is not successfully generating the .html results files. The .html files are being generated - but it is only 1 KB in size, and opens into a blank page. The .aiiresult file is still being generated successfully.

E.g:  "C:\Program Files (x86)\Telerik\Test Studio\Bin\ArtOfTest.Runner.exe" list="%WORKSPACE%\acs_web\ACS\TestLists\ACS_%%B_%TestType%.aiilist" out=%WORKSPACE%\output\%Group%%%B html

This is the full contents of the 1 KB  "ACS_InternetExplorer_Assessment 131335215157211413.html" for example:

<!DOCTYPE html><html lang="en">
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Telerik Test Studio Results</title>
    <style id="test_studio_css_styles" type="text/css">


Any idea why this is happening? I looked at the logs and there are a lot of Exceptions being thrown, most of which are related to invalid filepaths or System.IO.FileNotFoundException. It won't let me attach a .txt file so here's some examples:

 

[03/09 07:18:16,ArtOfTest.Runner.exe(7676:1),TestStudio] Loader.IndexLoadedSerializationTypes() : EXCEPTION! (see below)
     Outer Exception Type: System.Reflection.ReflectionTypeLoadException
     Message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
     HRESULT: 0x80131602 (Official ID (if app.) = COR_E_REFLECTIONTYPELOAD, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5634)
     Call Stack:
          at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
          at System.Reflection.RuntimeModule.GetTypes()
          at System.Reflection.Assembly.GetTypes()
          at ArtOfTest.Common.Design.Loader.IndexLoadedSerializationTypes(Assembly assembly)

     LOADER EXCEPTION #1
          Outer Exception Type: System.IO.FileNotFoundException
          Message: Could not load file or assembly 'IKVM.OpenJDK.XML.API, Version=8.1.5717.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The system cannot find the file specified.
          HRESULT: 0x80070002 (Official ID (if app.) = 2147942402, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_FILE_NOT_FOUND)

...

[03/09 07:19:23,ArtOfTest.Runner.exe(7676:1),TestStudio] AutomationHostState.LoadFailureImageFromDisk() : Invalid file path to load the bitmap from: C:\Users\admin\AppData\Local\Temp\ACS_Chrome_Assessment 131335354773102490_files\AAAS-3626 Verify -Machine Secret Lifetime in Hours-Text Input_0_ImageOnFailure.png
[03/09 07:19:23,ArtOfTest.Runner.exe(7676:1),TestStudio] AutomationHostState.LoadFailureDOMFromDisk() : Invalid file path to load the DOM from: C:\Users\admin\AppData\Local\Temp\ACS_Chrome_Assessment 131335354773102490_files\AAAS-3626 Verify -Machine Secret Lifetime in Hours-Text Input_0_DomTreeOnFailure.txt
[03/09 07:21:29,ArtOfTest.Runner.exe(7676:1),Error] RunResultHtmlExporter.Export() : EXCEPTION! (see below)
     Outer Exception Type: System.NullReferenceException
     Message: Object reference not set to an instance of an object.
     HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
     Call Stack:
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.<LoadExpectedAndOnFailureImages>d__10.MoveNext()
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.WriteImagesToSream(StreamWriter htmlWriter, Dictionary`2 resultsWithPaths)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.AddImages(String tempHtmlPath, String htmlFilePath, Dictionary`2 resultsWithPaths)
          at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.Export(String filePath, Dictionary`2 resultsWithPaths)

[03/09 07:21:29,ArtOfTest.Runner.exe(7676:1),Uncategorized] CommandLineRunner.Log() : Result saved with path: 'c:\jenkins\workspace\QA_ACS_Telerik\output\Chrome\ACS_Chrome_Assessment 131335354773102490.aiiresult'.

Thanks,

Michael

Elena
Telerik team
 answered on 13 Mar 2017
1 answer
105 views

Is anyone else experiencing this issue when attempting to configure an Android phone with the automatic configuration tool?


[INFO] Loading android manifest xml ...

[ERROR] Unable to create APK: C:\Users\Loc\AppData\Local\Temp\b1c354bq.pah\dump\res\values-v24\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.OptionsPanel'.

C:\Users\Loc\AppData\Local\Temp\b1c354bq.pah\dump\res\values-v24\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.LockScreen'.

Shtilianov
Telerik team
 answered on 10 Mar 2017
1 answer
60 views

Hello guys!
I'm try to extract a little part of a Header but i don't know how... Can help me?
I attached the example... I need to extract "392" in other variable!

Regards,

Oleg
Telerik team
 answered on 09 Mar 2017
1 answer
105 views

Hi

I have the following markup...

<p>
<span>Some fixed text</span>
<span>Some random text</span>
<span>Some more fixed text</span>
</p>

I would like to extract either Some random text (which will be different every time) or all the inner text from the <p>, whichever's easier.

Is there a way I can do this? I can find the two fixed text spans easily, but can't see how to extract the random text from between them.

Thanks

Mike

 

Nikolay Petrov
Telerik team
 answered on 03 Mar 2017
4 answers
57 views

Hello,

I have trouble highlighting existing element from the Element Explorer in the page displayed in the browser (the red box/go to DOM).

 

I have tried (from http://docs.telerik.com/teststudio/features/elements-explorer/overview )

> Enable/Disable Highlighting - control the highlighting of elements on the recording surface as they are selected in the tree view. When enabled, an element highlighted in the Elements pane will also be highlighted in the active browser.

It seems that this button is no longer present in the version 2017.1.207.0. There is no button between "Refresh" and "Expand/Collapse button".

> Locate in DOM - jump to this element's position in the DOM when the recording window is loaded.

That doesn't do anything, as far as I can tell. I have opened recording window, it is recording and "Highlight element" button in recording window is toggled on.

 

I can find the element in the DOM explorer in the "Find Element" window (through Edit Element context menu) using Validate button, but even if I find and select it there, it is not highlighted on the loaded page.

 

Thank you for your assistance.

Elena
Telerik team
 answered on 03 Mar 2017
2 answers
72 views
hi~ I am Chinese, I am an engineer, has been using Fiddler robot for automated testing, automated testing tools at the fiddler out, want to try to use, but not to do the translation, I do not know where to start ~help!!! 
Nikolay Petrov
Telerik team
 answered on 02 Mar 2017
5 answers
98 views

Hello,

I noticed that in Angular 2 the recording of elements is not ideal. Always something like tagindex:23 etc.

I know that you can add in the "Find Logic (Html)" element names but it seems that the Angular 2 elements are still not located and used to determine the best element selection. 

I added the following elements:

  • formcontrolname
  • formarrayname

Is there anything I can do to improve it or make it work?

Thanks,
Bjorn

Nikolay Petrov
Telerik team
 answered on 02 Mar 2017
3 answers
581 views

Hi there,

This issue is currently starting across a lot of my tests. Some tests are data driven, but most are just standard recorded steps, with maybe 1 or 2 very basic coded steps. Does anyone have any idea on how to stop this from happening?

Im current recording a test, and it breaks with the exception below. I disable that step, then it breaks with the same exception on the step below the disabled step.

Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown while finding elements for the following descriptor 'Verify element 'DepositIcon' 'is' visible.'. Exception 'System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.FindTargets(IAutomationHost targetHost, AutomationDescriptor baseDescriptor)'Learn more about finding elements here:
http://docs.telerik.com/teststudio/troubleshooting-guide/test-execution-problems-tg/unable-to-locate-element

Im using Test Studio version 2016.3.928.0.

Any assistance will be greatly appreciated.

Thanks

David

Elena
Telerik team
 answered on 01 Mar 2017
3 answers
119 views

Hi there,

In Chrome, when we download file, it will save the file to user's download profile directory by default.

In this situation, after file is successfully downloaded, a banner, or a dialog will appear in the bottom of Chrome(like the attached screen shot).

I want to know, how could I recognize and handle this dialog?

Background: when I download In chrome, our application does not give a generating or downloading message, thus, I am not able to wait until this message gone, so i am not bale to tell when it's finished. I have to keep eyes open for this bottom dialog. When this dialog appears, code would know download is finished. And I don't like to wait for a hard coded time...which is pretty bad, because sometimes the file is big, hard coded time may not enough.

Thanks.

Nikolay Petrov
Telerik team
 answered on 01 Mar 2017
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?