ContributionsMost RecentMost LikesSolutionsRe: How to access 'JScript prototype class methods' from Script ExtensionThanks David, for registering the problem in database. The 'Script Extension' feature is really helpful especially while automating an enterprize level Application where the general fucntionality can be shared across projects suites or literally products. But still this has it own dis-advantages by restrictions like these. Russell, Already I was using the Jscript class-prototype based script (as Script Unit) in my project suite and now need to share it across different project suites... Where (Project Suite / Location) you are storing this ENum class? Is it accessible without referencing inside other project suites by default (like Extensions...) Please clarify.How to access 'JScript prototype class methods' from Script ExtensionHi, I have a script which is written using JScript inside Script Extension. It is implemented using JScript class, prototype and class methods. Now I can't access these class methods. The script extension object is loaded and available inside the script units. But while execution of scripts, it prompts error. Example Script :- (Jscript classes using prototype) function Sample() { //constructor functions } Sample.prototype.First = function First() { Log.Message("Method Called"); } How to access the prototype methods from extension? Something like Sample.First() ? JScript Class - Methods, are supported inside Script extension or I am missing any thing here? Please guide... Re: How to parse the Time format in log description file?Thanks Enrique ! I am able to parse it. How to parse the Time format in log description file?Hi All, I have a script(Jscript) which parses through "Description.tcLog" and gets the node values like user name, error count and warning count. But the start and end time is in different format and i can't parse it. Can you help in converting this time format to which user can understand. Re: Can I send a mail from any account through BuiltIn.SendMail() ?G J, Yes I am using Outlook2003 while getting this confirmation prompt. I will try to change the Outlook settings to avoid it. Allen, Yes I understand the working of SendMail function. But I am bothered about sending mail through someone account just by knowing his/her email username. For Example: SendMail("MyEmailId","MyMailDomain","MyManagerName","MyManagerEmailId","Mail-Subject","Mail-Content") This statement is absolutely correct and I am getting a mail from my manager(as per the parameter defined)... Now security issue is I can have my own subject and use this function to get it from my manager mail account without knowing his mail credentials. Similar case may happen to me, just by getting my email username anyone can get a mail from me without my credentials !!! Now how you take this? Thanks & Regards, Giri Prasad Re: Can I send a mail from any account through BuiltIn.SendMail() ?Hi Madhi, Thanks for your post... I am aware we can use "Outlook.Application" object to send mail (also the general CDO object implementation). But when we use Outlook object, Windows may prompt the an confirmation dialog to the user which we need to handle(Attached the screen shot). It is relatively slow compared to BuildIn.SendMail method... My doubt is how the BuildIn.SendMail() method accessing the sender's mail account (credentials) even when he is not actually the current logged in user ! Won't you consider as a security issue ? Thanks & Regards, Giri Prasad Can I send a mail from any account through BuiltIn.SendMail() ?Hi, I am using TestComplete 7.52 version. I need to send email at the end of test execution using BuiltIn.SendMail(). I find that we can send email from any configured user email id to any other id... ie., I can send a mail to me from my manager's email account by just passing the suitable parameters to the sendmail function. How this particular function works and verifies whether the user has credentials? Or only by his email credential the mail is sent ? Thanks & Regards, Giri Prasad Re: function libraryAlso you do it as simple as this : =====> Right-click the desired scripting unit in the Project Explorer, and select the Add Unit References menu item. Now select the units to be referenced and start you function calling ! Re: function libraryHi Chuck Hunt, The functions from other scripts units can be referenced based on where it is created ! Let me assume you have your "Logon" function in "LogonScript" and "Main" function in "MainScript" 1. If Both "LogonScript" and "MainScript" scripts are available in same project : In the "MainScript" script unit refer the "LogonScript" script unit just by adding "USEUNIT" statement as below - For JScript ---> //USEUNIT LogonScript Don't forget to comment it and it should be in the first line of "MainScript" unit. (This is similar to using #include in c language) 2. If "LogonScript" and "MainScript" scripts are available in different projects : i. Add the "Logon" file by right clicking "Script" project item in the project where "MainScript" script unit is present and "Add => Existing Item" ii. Now browse for "LogonScript" script unit and add it. iii. Now your "LogonScript" unit is available as reference only. It is not duplicated. In the "MainScript" script unit refer the "LogonScript" script unit just by adding "USEUNIT" statement as below - For JScript ---> //USEUNIT LogonScript Don't forget to comment it and it should be in the first line of "Main" script. (This is similar to using #include in c language) After adding the "USEUNIT" statement, call the function as ==> LogonScriipt.Logon() Hope it helps you :) Have a great day ! Re: Reading data from database tableHi Michelle, You can use DDT.ADODriver object to connect to a database and access its tables via ADODB. This object has built-in methods to handle data in tables. For more information refer TestComplete help topics : "DDT.ADODriver" or http://www.automatedqa.com/support/viewarticle.aspx?aid=8359&hlite=DDT.ADODriver Hope it helps you...