Contributions
Re: How to select date from Data Time Picker in browserless silverlight application?
Hello , Please find attached zip file for sample Silver light Date Picker application. Since we do not have access to the actual application.I am attaching sample silver light application. Regards, Payal1.2KViews0likes0CommentsHow to select date from Data Time Picker in browserless silverlight application?
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta content="Word.Document" name="ProgId" /> <meta content="Microsoft Word 12" name="Generator" /> <meta content="Microsoft Word 12" name="Originator" /> &amp;amp;lt;BR /&amp;amp;gt; &amp;amp;lt;!--&amp;amp;lt;BR /&amp;amp;gt; /* Font Definitions */&amp;amp;lt;BR /&amp;amp;gt; @font-face&amp;amp;lt;BR /&amp;amp;gt; {font-family:"Cambria Math";&amp;amp;lt;BR /&amp;amp;gt; panose-1:2 4 5 3 5 4 6 3 2 4;&amp;amp;lt;BR /&amp;amp;gt; mso-font-charset:0;&amp;amp;lt;BR /&amp;amp;gt; mso-generic-font-family:roman;&amp;amp;lt;BR /&amp;amp;gt; mso-font-pitch:variable;&amp;amp;lt;BR /&amp;amp;gt; mso-font-signature:-1610611985 1107304683 0 0 159 0;}&amp;amp;lt;BR /&amp;amp;gt;@font-face&amp;amp;lt;BR /&amp;amp;gt; {font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; panose-1:2 15 5 2 2 2 4 3 2 4;&amp;amp;lt;BR /&amp;amp;gt; mso-font-charset:0;&amp;amp;lt;BR /&amp;amp;gt; mso-generic-font-family:swiss;&amp;amp;lt;BR /&amp;amp;gt; mso-font-pitch:variable;&amp;amp;lt;BR /&amp;amp;gt; mso-font-signature:-1610611985 1073750139 0 0 159 0;}&amp;amp;lt;BR /&amp;amp;gt; /* Style Definitions */&amp;amp;lt;BR /&amp;amp;gt; p.MsoNormal, li.MsoNormal, div.MsoNormal&amp;amp;lt;BR /&amp;amp;gt; {mso-style-unhide:no;&amp;amp;lt;BR /&amp;amp;gt; mso-style-qformat:yes;&amp;amp;lt;BR /&amp;amp;gt; mso-style-parent:"";&amp;amp;lt;BR /&amp;amp;gt; margin-top:0in;&amp;amp;lt;BR /&amp;amp;gt; margin-right:0in;&amp;amp;lt;BR /&amp;amp;gt; margin-bottom:10.0pt;&amp;amp;lt;BR /&amp;amp;gt; margin-left:0in;&amp;amp;lt;BR /&amp;amp;gt; line-height:115%;&amp;amp;lt;BR /&amp;amp;gt; mso-pagination:widow-orphan;&amp;amp;lt;BR /&amp;amp;gt; font-size:11.0pt;&amp;amp;lt;BR /&amp;amp;gt; font-family:"Calibri","sans-serif";&amp;amp;lt;BR /&amp;amp;gt; mso-ascii-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-ascii-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-fareast-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-fareast-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-hansi-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-hansi-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-bidi-font-family:"Times New Roman";&amp;amp;lt;BR /&amp;amp;gt; mso-bidi-theme-font:minor-bidi;}&amp;amp;lt;BR /&amp;amp;gt;.MsoChpDefault&amp;amp;lt;BR /&amp;amp;gt; {mso-style-type:export-only;&amp;amp;lt;BR /&amp;amp;gt; mso-default-props:yes;&amp;amp;lt;BR /&amp;amp;gt; mso-ascii-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-ascii-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-fareast-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-fareast-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-hansi-font-family:Calibri;&amp;amp;lt;BR /&amp;amp;gt; mso-hansi-theme-font:minor-latin;&amp;amp;lt;BR /&amp;amp;gt; mso-bidi-font-family:"Times New Roman";&amp;amp;lt;BR /&amp;amp;gt; mso-bidi-theme-font:minor-bidi;}&amp;amp;lt;BR /&amp;amp;gt;.MsoPapDefault&amp;amp;lt;BR /&amp;amp;gt; {mso-style-type:export-only;&amp;amp;lt;BR /&amp;amp;gt; margin-bottom:10.0pt;&amp;amp;lt;BR /&amp;amp;gt; line-height:115%;}&amp;amp;lt;BR /&amp;amp;gt;@page Section1&amp;amp;lt;BR /&amp;amp;gt; {size:8.5in 11.0in;&amp;amp;lt;BR /&amp;amp;gt; margin:1.0in 1.0in 1.0in 1.0in;&amp;amp;lt;BR /&amp;amp;gt; mso-header-margin:.5in;&amp;amp;lt;BR /&amp;amp;gt; mso-footer-margin:.5in;&amp;amp;lt;BR /&amp;amp;gt; mso-paper-source:0;}&amp;amp;lt;BR /&amp;amp;gt;div.Section1&amp;amp;lt;BR /&amp;amp;gt; {page:Section1;}&amp;amp;lt;BR /&amp;amp;gt;--&amp;amp;gt;&amp;amp;lt;BR /&amp;amp;gt; Hello, I have an issue to discuss with all of you. Issue is like this: I am working on browser less silver light application. I want to select date using code in Jscript by giving value in 'DD-MM-YYYY'. So I tried to specify my controls class name in the Win32 Controls and Windows | Date-time picker group of my project’s Object Mapping options. While adding control from Screen it gives error as "The selected object does not match the criteria of 'Win32 Controls and Windows' group." I am facing same issue while adding my Combo box control in object Mapping. I am attaching Screen shot ofDate Time Picker Control. Am i following right procedure? Regards, Payal11KViews0likes3CommentsWant to Write data into Excel file
I want to Write data from 'Form' to the 'Excel File'. 1. I am using aqFile method. 2. Right now data is going to Excel file but on same column. 3. After each text box value data should inserted on next column on same row. 3. Which command is given to send value to next column?12KViews0likes3CommentsTest complete should provide DDTDriverObj.RowCount
Hello AutomatedQA support, Test complete should provide DDTDriverObj.RowCount similar to DDTDriverObj.ColumnCount This thread is derived from 'DDT using Excel sheet' thread.Currently test complete only provides column count and not row count.Therefore it is recomended to have row count in up coming test complete releases. Thank you. Payal24KViews0likes11CommentsRe: DDT using Excel sheet
Hello Ahmed, We are trying to automate error handling test case. Here is the scenario - 1. Excel sheet has 10 rows containing data. 2. From the first 9 rows, the data should be filled onto the form and 'Submit' button is to be clicked. 3. From the 10th row data, the data should be filled onto the form and 'Cancel' button is to be clicked. Using Column count check, we were not getting the desired result. We need to use the row count for this. This is what we did. function test_driver() { var.... // This will give the used row count var excel = Sys.OleObject("Excel.Application"); var book = excel.Workbooks.Open("C:\\Excel.xls"); var rowCount = book.Sheets(1).UsedRange.Rows.Count; Log.Message(rowCount); excel.Quit(); Driver = DDT.ExcelDriver("C:\\Excel.xls", "Sheet1", true); // Iterates through records RecNo = 0; i = 1; while (! Driver.EOF() ) { User_Registration(); // Run User Registration function if (i<rowCount-1) { Submit_Button(); } else { Cancel_Button(); } i=i+1; Driver.Next() // Goes to the next record } Aliases.iexplore1.IEFrame.Close(); // Closing the driver DDT.CloseDriver(Driver.Name); } function User_Registration() { . . . function to fill in data from excel sheet . . } There is nothing wrong in Test Complete tool, but we highly recommend that Test Complete should introduce inbuilt excel row count method. If there is any better way to do this please let me know Thank you. Payal2.5KViews0likes0CommentsRe: DDT using Excel sheet
Ahmed, Yes you are right. I am again telling you my query. 1] Consider i am testing any form using Jscript 2] It fills first field and clicks on submit button and checking for errors which are displayed and so on. 3] At the end it fills all the fields and then clicks on cancel button(In my case it is Reset button) 4] So how to select the last row of the excel sheet so that at that point it clicks on cancel button.2.5KViews0likes0CommentsDDT using Excel sheet
function Main() { try { // Enter your code here. } catch(exception) { Log.Error("Exception", exception.description); } } // User Registration form DDT for Registration button // Creates the driver (main routine) function User_Registration_Form_TestDriver() { var Driver; var iexplore; // Creates the driver // If you connect to an Excel 2007 sheet, use the following method call: Driver = DDT.ExcelDriver("C:\\MyFile.xlsx", "Sheet2", true); TestedApps.IEXPLORE.Run(); iexplore = Aliases.IEXPLORE; Aliases.iexplore.pageMedizzleUserRegistration1.panelBgdiv.panelMaindiv.table.cell.table.cellMainstageMinHt.panelFormcontentdiv.table.cell.linkRegister.Click(); // Iterates through records RecNo = 0; while (! Driver.EOF() ) { User_Registration_Form_ProcessData();// Processes data Driver.Next(); // Goes to the next record } // Closing the driver DDT.CloseDriver(Driver.Name); iexplore.IEFrame.Close(); } //Data Driven testing for Register button for user registration form var RecNo; // Posts data to the log (helper routine) function User_Registration_Form_ProcessData() { /** * Test1 is to test working of cancel button in User Registration Form */ var iexplore; var page; var panel; var table; var passwordBox; var checkbox; var i; /** * The TestedApp object holds one item (Windows-based application) from the list. It has methods and properties that can set application attributes, launch or close the application, etc. */ /** * iexplore is object of TestApps and IEXPLORE is unique name of TestApps */ for(i=0 ;i<DDT.CurrentDriver.ColumnCount; i++) iexplore = Aliases.IEXPLORE; Aliases.iexplore.IEFrame.Maximize(); /** * An alias is just another name for a name mapping item. Aliases can be organized in a tree, so, you can, for example, shorten the mapping path to Aliases.Explorer1.PageObj. * Aliases tree provides a simplified hierarchy, where intermediate objects (such as layout containers) can be skipped in order to reduce the syntax used to refer to the mapped object in tests and this way improve the test readability */ // clicks on Registration link page = iexplore.pageMedizzleUserRegistration; page.Wait(); panel = page.panelBgdiv.panelMaindiv.table.cell.table.cellMainstageMinHt.formRegisterForm.panelContentdiv; table = panel.panelUserselectiondiv.table; table = panel.panelFormcontentdiv.table.cellFormfieldpadding.panelFormfielddiv.table; //Enter First Name table.cell.textboxTxtfirstname.Text = DDT.CurrentDriver.Value("First Name"); //Enter Last Name table.cell10.textboxtxtlastname.Text = DDT.CurrentDriver.Value("Last Name"); //Enter Email Address table.cell7.textboxTxtemailid.Text = DDT.CurrentDriver.Value("Email address"); //Enter User Name table.cell1.textboxTxtusername.Text = DDT.CurrentDriver.Value("User Name"); //Enter password passwordBox = table.cell2.passwordboxTxtpasswd.Text=DDT.CurrentDriver.Value("Password"); //Enter password again passwordBox = table.cell8.passwordboxTxtconfirmpasswd.Text=DDT.CurrentDriver.Value("Confirm Password"); //Select Gender if(DDT.CurrentDriver.Value("Gender")=="Male") { table.cell3.table.cell.radiobuttonRadiogroup20.Click(); } else { table.cell3.table.cell1.radiobuttonRadiogroup21.Click(); } //Select Register as if(DDT.CurrentDriver.Value("Register as")=="Patient") { table.cell9.table.cell1.radiobuttonRadiogroup10.Click(); } else { table.cell9.table.cell.radiobuttonRadiogroup11.Click(); } //Enter Capcha Code table.cell4.textboxTxtcaptcha.Text=DDT.CurrentDriver.Value("Capcha Code"); //Select Stay Connected if(DDT.CurrentDriver.Value("Stay Connected")=="Yes") { checkbox = table.cell5.table.cell.checkboxChknewletters.Click(); } else { } //Select Privacy Policy if(DDT.CurrentDriver.Value("Privacy Policy")=="Yes") { table.cell6.table.cell.checkboxChkprivacy.Click(); } else { Log.Message("Select the Privacy Policy"); } if(i<=DDT.CurrentDriver.ColumnCount) { table.cellRegistrationfieldtxt.table.cell1.panelButtonBlueDisplay.submitbuttonSubmit.Click(); } else { table.cellRegistrationfieldtxt.table.cell.panel.resetbuttonInput.Click(); } //iexplore.IEFrame.Close(); //aqUtils.Delay(2000); }15KViews0likes2CommentsDDT using Excel sheet
As i m a new user for test complete. I didnt get it how to do this.................. I m working with Jscript........... Consider i m testing for registration form. First i fill only First name of mine clicks on Register button.Then i vl Fill First name n last name n click register button..........I vl do this untill my last field is entered after last entry i want to click on cancel button. What to do for that? All the entries are passed by excel sheel. All test is running except that cancel button Here is my code........................ function Main() { try { // Enter your code here. } catch(exception) { Log.Error("Exception", exception.description); } } // User Registration form DDT for Registration button // Creates the driver (main routine) function User_Registration_Form_TestDriver() { var Driver; var iexplore; // Creates the driver // If you connect to an Excel 2007 sheet, use the following method call: Driver = DDT.ExcelDriver("C:\\MyFile.xlsx", "Sheet2", true); TestedApps.IEXPLORE.Run(); iexplore = Aliases.IEXPLORE; Aliases.iexplore.pageMedizzleUserRegistration1.panelBgdiv.panelMaindiv.table.cell.table.cellMainstageMinHt.panelFormcontentdiv.table.cell.linkRegister.Click(); // Iterates through records RecNo = 0; while (! Driver.EOF() ) { User_Registration_Form_ProcessData();// Processes data Driver.Next(); // Goes to the next record } // Closing the driver DDT.CloseDriver(Driver.Name); iexplore.IEFrame.Close(); } //Data Driven testing for Register button for user registration form var RecNo; // Posts data to the log (helper routine) function User_Registration_Form_ProcessData() { var iexplore; var page; var panel; var table; var passwordBox; var checkbox; var i; for(i=0 ;i<DDT.CurrentDriver.ColumnCount; i++) iexplore = Aliases.IEXPLORE; Aliases.iexplore.IEFrame.Maximize(); page = iexplore.pageMedizzleUserRegistration; page.Wait(); panel = page.panelBgdiv.panelMaindiv.table.cell.table.cellMainstageMinHt.formRegisterForm.panelContentdiv; table = panel.panelUserselectiondiv.table; table = panel.panelFormcontentdiv.table.cellFormfieldpadding.panelFormfielddiv.table; //Enter First Name table.cell.textboxTxtfirstname.Text = DDT.CurrentDriver.Value("First Name"); //Enter Last Name table.cell10.textboxtxtlastname.Text = DDT.CurrentDriver.Value("Last Name"); //Enter Email Address table.cell7.textboxTxtemailid.Text = DDT.CurrentDriver.Value("Email address"); //Enter User Name table.cell1.textboxTxtusername.Text = DDT.CurrentDriver.Value("User Name"); //Enter password passwordBox = table.cell2.passwordboxTxtpasswd.Text=DDT.CurrentDriver.Value("Password"); //Enter password again passwordBox = table.cell8.passwordboxTxtconfirmpasswd.Text=DDT.CurrentDriver.Value("Confirm Password"); //Select Gender if(DDT.CurrentDriver.Value("Gender")=="Male") { table.cell3.table.cell.radiobuttonRadiogroup20.Click(); } else { table.cell3.table.cell1.radiobuttonRadiogroup21.Click(); } //Select Register as if(DDT.CurrentDriver.Value("Register as")=="Patient") { table.cell9.table.cell1.radiobuttonRadiogroup10.Click(); } else { table.cell9.table.cell.radiobuttonRadiogroup11.Click(); } //Enter Capcha Code table.cell4.textboxTxtcaptcha.Text=DDT.CurrentDriver.Value("Capcha Code"); //Select Stay Connected if(DDT.CurrentDriver.Value("Stay Connected")=="Yes") { checkbox = table.cell5.table.cell.checkboxChknewletters.Click(); } else { } //Select Privacy Policy if(DDT.CurrentDriver.Value("Privacy Policy")=="Yes") { table.cell6.table.cell.checkboxChkprivacy.Click(); } else { Log.Message("Select the Privacy Policy"); } if(i<=DDT.CurrentDriver.ColumnCount) { table.cellRegistrationfieldtxt.table.cell1.panelButtonBlueDisplay.submitbuttonSubmit.Click(); } else { table.cellRegistrationfieldtxt.table.cell.panel.resetbuttonInput.Click(); } //iexplore.IEFrame.Close(); //aqUtils.Delay(2000); }20KViews0likes13Comments