简体   繁体   English

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

[英]Test passing.But Test List is Failing

Some of my Scripts are very finely working when running as test.But When I run the test in test list.it's failing why am not understanding.please give assistance. 我的一些脚本在作为测试运行时可以很好地工作。但是当我在测试列表中运行测试时,为什么不理解仍然失败。请给予帮助。 Test log: 测试日志:

Overall Result: Pass 总体结果:通过

  • Using .Net Runtime version: '4.0.30319.18052' for test execution. 使用.Net运行时版本:“ 4.0.30319.18052”进行测试执行。 Build version is '2013.1.709.0'. 内部版本为“ 2013.1.709.0”。

    • Starting execution.... 开始执行...。
    • Detected a Silverlight Test. 检测到Silverlight测试。 Setting EnableSilverlight=True 设置EnableSilverlight = True
      • Detected custom code in test. 在测试中检测到自定义代码。 Locating test assembly: TestProject(BA).dll. 查找测试程序集:TestProject(BA).dll。

    '08/09/2013 PM 06:04:53' - Assembly Found: '08 / 09/2013 PM 06:04:53'-找到装配体:

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

'08/09/2013 PM 06:04:53' - Using 'InternetExplorer' version '10.0' as default browser. '08 / 09/2013 PM 06:04:53'-使用'InternetExplorer'版本'10 .0'作为默认浏览器。

  • 'Pass' : 1. Navigate to : “通过”:1.导航至:

'Pass' : 2. radmaskedtextbox: click with '5' offset action. “通过”:2. radmasked文本框:单击带有“ 5”偏移量的动作。

'Pass' : 3. radmaskedtextbox: type 'abc' text action. 'Pass':3. radmaskedtextbox:键入'abc'文本操作。

'Pass' : 4. LeftClick on Item1Textboxview “通过”:4.在Item1Textboxview上单击鼠标左键

'Pass' : 5. Type 'abc@#' into PasswordPasswordbox '08/09/2013 PM 06:05:07' - 'Pass':5.在PasswordPasswordbox '08 / 09/2013 PM 06:05:07'中输入'abc @#'-

'Pass' : 6. Click RadBtnSignInRadbutton “通过”:6.单击RadBtnSignInRadbutton

'Pass' : 7. [Converting_Quote_CodedStep1] : LeftClick on CustomersTextblock, RequiresSilverlight=True 'Pass':7。[Converting_Quote_CodedStep1]:在CustomersTextblock上单击鼠标左键,RequiresSilverlight = True

'Pass' : 8. Verify QuoteTextblock's Left side Equal 19 '通过':8.验证QuoteTextblock的左侧等于19

'Pass' : 9. [Converting_Quote_CodedStep3] : LeftClick on QuoteTextblock, RequiresSilverlight=True 'Pass':9。[Converting_Quote_CodedStep3]:在QuoteTextblock上左击,RequiresSilverlight = True

'Pass' : 10. LeftClick on PARTContentPresenterContentpresenter '08/09/2013 PM 06:05:29' - “通过”:10。在PARTContentPresenterContentpresenter上单击Left'2013 / 09/08 PM 06:05:29'-

'Pass' : 11. [Converting_Quote_CodedStep] : LeftClick on DropDownPartRadtogglebutton, RequiresSilverlight=True 'Pass':11。[Converting_Quote_CodedStep]:在DropDownPartRadtogglebutton上单击鼠标左键,需要Silverlight = True

'Pass' : 12. [Converting_Quote_to_Invoice_CodedStep] : radmenuitem: 'To Invoice' click action., RequiresSilverlight=True 'Pass':12。[Converting_Quote_to_Invoice_CodedStep]:radmenuitem:“ To Invoice”点击操作。,RequiresSilverlight = True

'Pass' : 13. Click BtnPrintRadribbonbutton “通过”:13.单击BtnPrintRadribbonbutton

'Pass' : 14. radwindow: 'Close' action. '通过':14. radwindow:'关闭'动作。

'Pass' : 15. Click SaveCloseRadribbonbutton 'Pass':15.单击SaveCloseRadribbonbutton

'Pass' : 16. [Converting_Quote_CodedStep2] : LeftClick on InvoiceTextblock, RequiresSilverlight=True '08/09/2013 PM 06:05:41' - 'Pass':16。[Converting_Quote_CodedStep2]:在InvoiceTextblock上单击鼠标左键,RequiresSilverlight = True '08 / 09/2013 PM 06:05:41'-

'Pass' : 17. LeftClick on BlueBicycleTextblock '08/09/2013 PM 06:05:45' - 'Pass':17. BlueBicycleTextblock上的LeftClick'2013/09/08 PM 06:05:45'-

'Pass' : 18. Click BtnCloseRadribbonbutton “通过”:18.单击BtnCloseRadribbonbutton

Am attaching Error msg 正在附加错误消息

Failure Information: ~~~~~~~~~~~~~~~ Exception thrown executing coded step: '[Add_New_Quote_CodedStep3] : LeftClick on PARTFooterCellBorderBorder, RequiresSilverlight=True'.InnerException: 故障信息:~~~~~~~~~~~~~~~~抛出异常,正在执行编码步骤:'[Add_New_Quote_CodedStep3]:在PARTFooterCellBorderBorder上单击Left,RequiresSilverlight = True'。

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 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) 在ArtOfTest.Common.WaitSync.For [T](谓词1谓词,T目标,布尔型invertCondition,Int32超时,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) 在ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr,布尔waitOnElement,Int32超时)

at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr) at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](XamlFindExpression expr) at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](String[] clauses) at TestProject_BA_.Pages.BPage.SilverlightAppElement.get_PARTFooterCellBorderBorder() in d:\\pranavi\\TestProject(BA06)\\Pages.g.cs:line 1808 在ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get [TControl](XamlFindExpression expr)在ArtOfTest.WebAii.TestTemplates.XamlElementContainer()在ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr)在d:\\ pranavi \\ TestProject(BA06)\\ Pages.g.cs:line 1808中的TestProject_BA_.Pages.BPage.SilverlightAppElement.get_PARTFooterCellBorderBorder()中

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

please see the attachments. 请参阅附件。

If you are testing a web application, as you know telerik tests the UI components based on the baseURL. 如果您正在测试Web应用程序,众所周知,telerik会基于baseURL测试UI组件。 There are 2 different locations for settings when you are running as a test(vs running as a testList). 作为测试运行时(相对于作为testList运行)有2个不同的设置位置。 Cross verify the baseURL in both the settings section(if they are the same). 在两个设置部分交叉验证baseURL(如果它们相同)。 As I can see the error is Element Not found. 如我所见,错误是找不到元素。 Which might be coz, the associated baseURL for that element is different. 可能是因为,该元素的关联baseURL不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM