Contributions
Re: Does its possible to post an desktop screenshot with an message to the log.
Hi All, Can use Log.Message() with other method as well. Log.Message("MessageText","", pmNormal, null, Sys.Desktop.Picture()); Log.Checkpoint("Check point message","", pmNormal, null, Sys.Desktop.Picture()); Log.Warning("Warning message","", pmNormal, null, Sys.Desktop.Picture()); Log.Error("Error message","", pmNormal, null, Sys.Desktop.Picture()); My issue been solved. ............. Thanks Dev699Views2likes0CommentsRe: Does its possible to post an desktop screenshot with an message to the log.
Hi All, I just found the solution from following link http://smartbear.com/forums/f74/t89334/how-can-i-post-screenshot-and-text-to-the-same/ Solution is given by Tanya and its solve my issue. Log.Message("MessageText","", pmNormal, null, Sys.Desktop.Picture()); So above solution can use with following method, Log.Message() Does its possible to use above solution with following log methods? Log.Checkpoint() Log.Error() Log.Warning() Or is there any differnce way to do its? ...................... Thanks Dev699Views0likes0CommentsDoes its possible to post an desktop screenshot with an message to the log.
Hi All, I want to post an desktop screenshot with an message to the log, does its possible? Currently I am doing this, Log.Message("My results screenshot") Log.Picture(Sys.Desktop.Picture()); Problem is in the log, its display in two lines. first line with the message and next line with the screenshot without any message. I need to see those in single line, which including message and screenshot. Does its possible? ...................... Thanks Dev775Views0likes2CommentsCant we give partial of that message to check whether its occurred or not?
Hi All, Currently i am using onlogerror event handler as below. -------------------------- function GeneralEvents_OnLogError(Sender, LogParams){ if (LogParams.MessageText == "The object does not exist. See Additional Information for details."){ Log.Message("its object not found error message!"); } else { Log.Message("its something else.") } } ------------------------- My issue is, Instead of giving entire error message, cant we give partial of that message to check whetherits occured or not? Ex; Now I have to give "The object does not exist. See Additional Information for details.", to check whetherits object not found error or not. How about giving only "object does not exist". ............... Thanks DevSolved912Views0likes1CommentRe: Scripts get fail due to difference reason
Hi Tanya, I will incorporate your suggestion into my scripts. Since I am reading and writing to Excel file in the same line, there for I didn’t use it. Which couldn’t do with DDT? Anyway I will update the results with you. ................. Thanks Dev928Views0likes0CommentsRe: Scripts get fail due to difference reason
Hi Tanya, Thanks for the reply. Here are details; My testing framwork is data driven framework, where excel file contain the test data and finally test results as well. My test scripts written by JScripts. Some uinte's contain the functions module wise. Some unites create a tes scenario by using above funtions and these unites will we executed. Sorry I am attaing all the funtion which might be big. Also I have initialy posted the issue by differnce gmail account. Please go thorugh the scirpts and let me know where I can imporve my scripts from the Testcomplete point of view. Testcomplete version: 10.0.531.7. ....... Thanks. Dev928Views0likes0CommentsIssue with date value format
Hi All, I am passing a date value from an Excel file and then its enter into the web page by TestComplete. Problem is date value format been changed while entering into the web page. Ex; input data; date_val = "4/07/2014"; / this value in the Excel file. Insert value into the web page by TestComplete is "Thu Jul 4 00:00:00 UTC+0530 2013". ................... Thanks Dev1.3KViews0likes2CommentsRe: Unable to automate export file scenario of the web application using browser IE
Hi All, Now its working for me. Browser : IE 9. After i reach into "File_Import_screenshot.jpg", i ran the following code which will open the excel file and save into given location. function test_execution(){ filepath = "\\QA07\Folder\45_RPT\\"; rpt_name = "Costing Reports"; rpt_id = "123"; export_excelfile(filepath,rpt_name,rpt_id) } function export_excelfile(filepath,rpt_name,rpt_id){ Sys.Browser("iexplore").BrowserWindow(1).Window("Frame Notification Bar", "", 1).UIAObject("Notification_bar").SetFocus(); Sys.Browser("iexplore").BrowserWindow(1).Window("Frame Notification Bar", "", 1).UIAObject("Notification_bar").UIAObject("Open").Click(); var filenameval1 = rpt_name + "_" + rpt_id + ".xls"; var filepathval2 = filepath + filenameval1; waitExcelObject("WndCaption","Microsoft Excel - CrystalReportViewer1.xls [Protected View] [Compatibility Mode]","WndClass","XLMAIN","1000") Sys.Process("EXCEL").Window("XLMAIN", "*", 1).SetFocus(); Sys.Desktop.Keys("[Alt]FA") waitExcelObject("WndCaption","&Enable Saving","WndClass","Button","10000") Sys.Process("EXCEL").Window("#32770", "Microsoft Excel", 1).Window("Button", "&Enable Saving", 1).Click(); waitExcelObject("WndCaption","Save As","WndClass","#32770","10000") Sys.Process("EXCEL").Window("#32770", "Save As", 1).Window("DUIViewWndClassName", "", 1).UIAObject("Explorer_Pane").Window("FloatNotifySink", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1).SetText(filepathval2); Sys.Process("EXCEL").Window("#32770", "Save As", 1).Window("Button", "&Save", 1).Click(); Sys.Process("EXCEL").Window("XLMAIN", "Microsoft Excel - " + filenameval1 + " [Compatibility Mode]", 1).Close(); return "File been successfully save at " + filepathval2; } function waitExcelObject(prop_name1,prop_value1,prop_name2,prop_value2,maxTime){ var my_object1; var counter = 0; var objectprop1 = new Array(prop_name1, prop_name2); var objectvalue1 = new Array(prop_value1,prop_value2); do { aqUtils.Delay(100); counter+= 100; Indicator.PushText(counter); if(counter>maxTime) { return; } my_object1= Sys.Process("EXCEL").Find(objectprop1,objectvalue1, 2000, true); Indicator.PopText(); } while (!my_object1.Exists) }1.1KViews0likes0Comments