Commenting Out Multiple Lines in TestComplete BDD Scenarios
Hey all, I'm working on BDD scenarios in TestComplete and noticed there's no built-in feature to comment out multiple lines at once, unlike when working on scripts. Any suggestions or workarounds to streamline this? Thanks!51Views1like5CommentsOCR value as a variable.
How do I make ocrValue equals transactionID in the previous function, by only running the ScriptOCR function during a keyword test? Do I have to make transactionID global variable? Both variables are used in different tests. I want to get the OCR value to use in this keyword test.16Views0likes2CommentsExcel: how do you change sheet name in Excel file
How do you change the name of a sheet in excel? This is what I have so far but can't find the method which changes the sheet 'Title'. Please do not delete this question: <SPAN class="token keyword">function</SPAN> <SPAN class="token function">changeExcelTabName</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">{</SPAN> <SPAN class="token keyword">var</SPAN> excelFile <SPAN class="token operator">=</SPAN> Excel<SPAN class="token punctuation">.</SPAN><SPAN class="token function">Open</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token string">"C:\\Users\\chk\\Downloads\\Task groups with no tasks_2024_3_11 16_59_34.xlsx"</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN> excelFile<SPAN class="token punctuation">.</SPAN><SPAN class="token function">SheetByIndex</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token number">0</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">.</SPAN>Title <SPAN class="token operator"><</SPAN>the code to change sheet title would go here<SPAN class="token operator">></SPAN> excelFile<SPAN class="token punctuation">.</SPAN><SPAN class="token function">Save</SPAN><SPAN class="token punctuation">(</SPAN><SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN> <SPAN class="token punctuation">}</SPAN>Solved47Views0likes5CommentsOpen PDF file and how to compare diagrams in pdf file with other pdf file
I want to compare two pdf file in which there are some figures and diagrams like graph and circles .How can I do that . PDF checkpoint is checking the text only and validate it but what about figures . Also i want to open PDF file which has saved in a folder .How to do that. Its a desktop application and i am doing keyword testing using record and play MarshaT29Views0likes1CommentJavaScript - how to get current time but in different time zone(s)
Hi, I'm working on a project, where I need to get current time but in different time zone(s). I found that there is no way to achieve this with aqDateTime or aqConvert object. So I thought of some custom JavaScript code, but all of them are using 3rd party libs. I guess there is no way to import custom libs in TC? Does anyone know or use some kind of TimeZone-related JavaScript code, which works with TC? Thanks. For example, I tried the below code, but of course it fails on ReferenceError: Intl is not defined. function getSetActualDate(addDays, addMonths, addYears, dateFormat, timeZoneString) { var timeUtc = new Date(); var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; var zoneTime = new Date(timeUtc.toLocaleString(timeZoneString, { timeZone })); var adjustedTime = new Date( zoneTime.getFullYear() + addYears, zoneTime.getMonth() + addMonths, zoneTime.getDate() + addDays, zoneTime.getHours(), zoneTime.getMinutes(), zoneTime.getSeconds(), zoneTime.getMilliseconds() ); var dateString = adjustedTime.toLocaleString(timeZoneString, { timeZone, format: dateFormat }); return dateString; }Solved154Views0likes6CommentsHow to upload 50+ client information for validation.
Hi There, I am new to test complete, I have a feature written for validation. I have a around 50+ clients to validate. I have written few examples below, but I would like to know how to upload 50+ client information for validation.16Views0likes1CommentMobile - Swipe to an element
Hello! I am trying to find a way how I can scroll in an application until an element is visible. Basically the original issue is that using app.FindElementByXpath of an object errors with "Unable to find an element that matches the specified 'xpath' selector strategy", however, it works when I manually scroll onto the object. On web, I am aware of the ScrollIntoView functionality, but can't find anything similar for android/ios? Thanks in advance!540Views1like3CommentsImportError: PyO3 modules may only be initialized once per interpreter process.
I am running into an issue while trying to import custom python modules into TestComplete. Specifically, I’m seeing the following error. To give more info, I believe it worked once, though I could have simply not remembered correctly. I have tried using the steps in this link: https://community.smartbear.com/t5/TestComplete-Questions/Steps-to-Import-Python-Library-in-TestComplete/td-p/202459. I have also tried importing using python build to create a whl. Both of which seem to eventually give this error.560Views0likes3Comments