Contributions
How to use extent report in Testcomplete
I performed below Operation 1.Load Classes and Jar in Java Bridge. 2. function Test() { var extentReports = JavaClasses.com.relevantcodes.extentreports.ExtentReports var logStatus = JavaClasses.com.relevantcodes.extentreports.LogStatus var path = ".\\Generated ExtentReport\\report.html" var extent = extentReports.newInstance(path); var test = extent.startTest("Sample Test Report", "Sample description"); test.log(logStatus.INFO, "This step shows usage of log INFO"); test.log(logStatus.PASS, "This step shows usage of log PASS"); test.log(logStatus.FAIL, "This step shows usage of log FAIL"); extent.endTest(test); extent.flush(); } After running the above code . "I am getting an error cannot read property of relevant code of undefined" PFA the Screenhot of Java Bridge configuration and errorSolved3.3KViews0likes3CommentsRe: How to Use Excel file with DDT driver in code ,without opening the excel file
FileName = "Path of the file " intCount = 0 'set Objdriver = DDT.ExcelDriver(FileName , SheetName) set objdriver = DDT.ExcelDriver(FileName ,SheetName,)//here it shows ' do While not(objdriver.EOF())//here it shows ' intCount = intCount+1 ' objdriver.Next() ' loop While not(objdriver.EOF())2.4KViews0likes0Comments- 2.4KViews0likes0Comments
Re: How to Use Excel file with DDT driver in code ,without opening the excel file
FileName = "Path of the file " intCount = 0 'set Objdriver = DDT.ExcelDriver(FileName , SheetName) set objdriver = DDT.ExcelDriver(FileName ,SheetName,) ' do While not(objdriver.EOF()) ' intCount = intCount+1 ' objdriver.Next() ' loop While not(objdriver.EOF()) intCount = intCount+1 objdriver.Next() Wend DDT.CloseDriver(objdriver.Name) redim arrInput(intRecCount) set objdriver = DDT.ExcelDriver(FileName , SheetName,true) for LoopCount = 0 to intRecCount-1 if IsNull(DDT.CurrentDriver.Value(intColumnNo)) then ArraySize = LoopCount - 1 exit For Else arrInput(LoopCount) = VarToStr(DDT.CurrentDriver.Value(intColumnNo)) objdriver.Next() ArraySize = intRecCount end if next DDT.CloseDriver(objdriver.Name) redim arrdata(ArraySize) for LoopCount1 = 0 to UBound(arrdata) arrdata(LoopCount1) = arrInput(LoopCount1) next ReadExcel = arrdata End Function2.4KViews0likes5CommentsHow to Use Excel file with DDT driver in code ,without opening the excel file
When I try to access excel with DDT driver ,with Excel file open ,code is working fine , but as soon as I run code the with excel file closed ."An attempt to work with closed driver ".Is there any workArround that I can use to run the code without opening the excel file2.6KViews0likes10Comments