测试通过。但测试列表失败

时间:2013-08-09 13:14:21

标签: telerik-test-studio

我的一些脚本在作为测试运行时非常精细。但是当我在测试列表中运行测试时,它失败了,为什么我不理解。请给予帮助。 测试日志:

总体结果:通过

  • 使用.Net Runtime版本:' 4.0.30319.18052'进行测试                  执行。构建版本是' 2013.1.709.0'。

    • 开始执行....
    • 检测到Silverlight测试。设置EnableSilverlight = True
      • 在测试中检测到自定义代码。定位测试组件: TestProject(BA)的.dll。

    ' 08/09/2013 PM 06:04:53' - 发现大会:

----------------------------------------------- -------------

' 08/09/2013 PM 06:04:53' - 使用' InternetExplorer'版本' 10.0'作为默认浏览器。

  • '通行证' :1。导航至:

'通行证' :2。radmaskedtextbox:点击“' 5'抵消行动。

'通行证' :3。radmaskedtextbox:输入' abc'文字行动。

'通行证' :4。左键单击Item1Textboxview

'通行证' :5。键入' abc @#'进入PasswordPasswordbox ' 08/09/2013 PM 06:05:07' -

'通行证' :6。单击RadBtnSignInRadbutton

'通行证' :7。[Converting_Quote_CodedStep1]:LeftClick on CustomersTextblock,RequiresSilverlight = True

'通行证' :8。验证QuoteTextblock的左侧是否等于19

'通行证' :9。[Converting_Quote_CodedStep3]:LeftClick on QuoteTextblock,RequiresSilverlight = True

'通行证' :10。左键单击PARTContentPresenterContentpresenter ' 08/09/2013 PM 06:05:29' -

'通行证' :11。[Converting_Quote_CodedStep]:LeftClick on DropDownPartRadtogglebutton,RequiresSilverlight = True

'通行证' :12。[Converting_Quote_to_Invoice_CodedStep]:radmenuitem:' To Invoice'点击动作。,RequiresSilverlight = True

'通行证' :13。单击BtnPrintRadribbonbutton

'通行证' :14。radwindow:'关闭'动作。

'通行证' :15。单击SaveCloseRadribbonbutton

'通行证' :16。[Converting_Quote_CodedStep2] :LeftClick on InvoiceTextblock,RequiresSilverlight = True ' 08/09/2013 PM 06:05:41' -

'通行证' :17。LeftClick on BlueBicycleTextblock ' 08/09/2013 PM 06:05:45' -

'通行证' :18。单击BtnCloseRadribbonbutton

附加错误消息

失败信息:  ~~~~~~~~~~~~~~~    抛出执行编码步骤的异常:' [Add_New_Quote_CodedStep3]:    LeftClick on PARTFooterCellBorderBorder,RequiresSilverlight = True' .InnerException:

ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used: 

[automationid 'Exact' dtgProductAndServiceInvoice] AND [XamlTag 'Exact' radgridview]
[XamlPath 'Exact'     /border[name=PART_MasterGridContainer]/
grid[name=HierrarchyBackground]/
gridviewscrollviewer     [automationid=PART_ItemsScrollViewer]/
grid[name=PART_RootPanel]/
gridviewfooterrow[automationid=PART_FooterRow]
/border[name=PART_FooterRowBorder]/selectivescrollinggrid[0]/
datacellspresenter [name=PART_DataCellsPresenter]/ grid[0]/
itemspresenter[0]/gridviewcellspanel[0]/
gridviewfootercell[0]/border[name=PART_FooterCellBorder]]

 at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait,StringextraExceptionInfo,Object target)     

at ArtOfTest.Common.WaitSync.For [T](Predicate`1谓词,T target,Boolean invertCondition,Int32 timeout,WaitResultType errorResultType)

 at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal
(Int32 timeout, Boolean invertCondition)

at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)

at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr,Boolean waitOnElement,Int32 timeout)

at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr)    在ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get [TControl](XamlFindExpression expr)    在ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get [TControl](String []子句)    在D:\ pranavi \ TestProject(BA06)\ Pages.g.cs中的TestProject_BA_.Pages.BPage.SilverlightAppElement.get_PARTFooterCellBorderBorder():第1808行

在d:\ pranavi \ TestProject(BA06)中的TestProject_BA_.Add_New_Quote.Add_New_Quote_CodedStep3()#4#Invoice \ Add New Quote.tstest.cs:line

请参阅附件。

1 个答案:

答案 0 :(得分:1)

如果您正在测试Web应用程序,您知道telerik基于baseURL测试UI组件。当您作为测试运行时,有两个不同的设置位置(vs作为testList运行)。交叉验证两个设置部分中的baseURL(如果它们相同)。我可以看到错误是未找到元素。这可能是因为,该元素的关联baseURL是不同的。

相关问题