Contributions
Re: TestComplete Profiles - USA
HiVallalarasu_P Is this requirement for the one who is currently holding US visa? If not please find the details Total years of Experience : 9 Years Experience in TestComplete : 7 Years Current Role : Testing Lead Current Location : Bangalore Visa Status : No1.2KViews0likes0CommentsTC support for Electron
Hi All, We are having our application developed in electron 3.0.8. I have gone through test complete forum and it says that TC supports applications developed in electron till version 2.x. Is there any update on by when TC starts support for the latest electron versions?911Views0likes1CommentRe: Does Test complete supports FTP?I would like to send a file through FTP.
HKosova: .NET classSystem.Net.FtpWebRequestthrough theCLR Bridgewhich GAC do I need to add inorder to get the methods? I have added System.Net, netStandard, System.net.Requests. Is there a sample program available using CLR Bridge?1.6KViews0likes1CommentRe: Automation Execution Report
Hishankar_rrajabe9209 Heads up!!! Can you specify the type of encoding when you are writing values using aqFile.WriteToTextFile and specify the UTF-8 or UTF16 encoding type. I wrote a sample HTML which accepts unicode characters.Attaching sample.html file.2.3KViews0likes2CommentsRe: How to iterate date in text file using regular expression
Hi, AsMarsha_Rsaid there are multiple ways to accomplish the task. If you are looking for regular expression here is a sample script which is being written in vbscript to fetch only the Date value from a string increment it and replace with the incremented value. Sub Test() oriDate = GetDateFromString("27/02/1988,09:30,00:25,Slot2,NH New History-2,03,,07,,Comedy,16,,06,,") replacedDateVal = IncrementAndReplaceYear(oriDate) MsgBox replacedDateVal End Sub '' Regular expression to get the dateVal from String Function GetDateFromString(strToSearch) Set re = New RegExp re.Pattern = "(\d{1,2}\/\d{1,2}\/\d{4})|" Set resStr = re.Execute(strToSearch) If re.Test(strToSearch) Then GetDateFromString = resStr(0).Value Else GetDateFromString = "date not found!" End If End Function '' Increment the year value and replace the year val Function IncrementAndReplaceYear(dateVal) yr = Year(dateVal) replacedVal = ConvertDate(dateVal, yr + 1) IncrementAndReplaceYear = replacedVal End Function Function ConvertDate(originalDate, incrementedYear) dateVal = Day(originalDate) monthVal = Month(originalDate) If Len(dateVal) = 1 Then dateVal = "0" & dateVal End If If Len(monthVal) = 1 Then monthVal = "0" & monthVal End If ConvertDate = dateVal & "/" & monthVal & "/" & incrementedYear End Function1.5KViews0likes0CommentsRe: Question on CLR bridge
Hitristaanogre,HKosova Thank you very much for shedding some light on CLR. As I have said earlier I was trying the sample to understand how CLR works, so I chose this sample. As I have a requirement to load a assembly and test communication related stuffs for a hardware, I wanted to understand how CLR works in test complete and how different the syntax is compared working with actual C# programming and loading that dll. Thanks again for the help.2.3KViews0likes1CommentRe: Question on CLR bridge
HItristaanogre, As a first step to understand I have written a sample vbscript to write a line to text file using clr bridge. The problem is I am able to create a file but not able to write the contents to the file. Below is the sample routine which is written Sub Test fileName = "C:\sv1.txt" Set z = dotnet.System_IO.StreamWriter z.zctor_5(fileName).WriteLine "Sample text" End Sub2.4KViews0likes4CommentsQuestion on CLR bridge
Hi, Can anyone shed some light or working on CLR bridge through test complete? Sorry for being dumb, I am trying to write some data to a text file using StreamWriter and finding no success. Can anyone guide me to a sample on working with CLR bridgeSolved2.4KViews0likes6Comments