Contributions
I write on line 0 excel ?
Hello, a simple and quick questions. I'm copying a table and inserting her values in excel, though, I'm not able to write the first column of the table. The variable column starting with the value 1, in which case it writes correctly but does not write the first column. If I comment out the command to write in excel, and add a log line and put the variable column to 0, you can see the correct columns in the log, including the first. When trying to write in excel with the variable column to 0, it appears an error screen, and the script does not continue. It's like in excel not exist 0. Is it possible to write the first column in some way? var i = 1; for (i; i < ABody.rows.length; i++) { var linha = ABody.rows.item(i); Log.AppendFolder("Row " + i); var j = 1; //<- here is the column for (j; j < linha.cells.length; j++) { var cell = linha.cells.item(j); Log.Message("Valor " + j + ": " + cell.innerText); //<- Log Book.Cells(1) = aqConvert.VarToStr(tag +" --> "+ tag1); //<-Header Book.Cells(i, j) = aqConvert.VarToStr(cell.innerText); Delay(1000); } } if I keep the variable 'j' to 1, the code work, but the first column is not written in excel. If I put the variable to 0 an error occurs. This Error: ';' expected Error location: Unit: "aneel_coleta\aneel_coleta\Script\test" Line: 116 Column: 4. <- This Line - Book.Cells(i, j)=aqConvert.VarToStr(cell.innerText);1KViews0likes1CommentHow to open a second pop up, without closing the first one?
Hello everybody, I have a problem when trying to open and close a pop up in TestComplete. I am currently writing regression script in C # language. The problem: The system to which I test is web, and to access it you need to do the following steps: Open the browser to the login page, to make logging in, the system opens a pop up that becomes the system's main page - this is pop up in her full mode (maximized) ... I was able to test quietly as I worked on this main screen (pop up first). But now I need to work on some pop up the system opens, ie is a pop up that opens a new pop up, this new pop up has a size less than 20% of the screen and is always centered (these pop are up to change password etc). The question is the following; to open the new pop up, TestComplete already open maximized way, and to try to close the new pop up, it actually closes the pop up the main system screen, or the screen is a layer below the new pop up. I made a simple code to illustrate: function OpenPassword() { var Page; Page = Sys.Browser().ToUrl("mywebsite.com/changePassword"); // DO SOMETHING Page.Close (); } The code should open a new page, which is a pop up, and then I do some tests within the page and then shut. The problem turns out; When the page opens, it opens and closes maximized the default page, which would be the first pop up. My question is ... How can I map the pop up? as I can not open this second pop up, without closing the main pop up? I tried a number of ways, but so far not got no success with, for only opening the pop up, the system is closed... I look forward suggestions.757Views0likes1CommentInserting a value into a variable
Hello guys, I have a relatively simple question, and that level of programming is simple to do. I use TC as "Recorder and Play" and would like to use a property as an example "contentText[get]" to get a value from a report and pass to a variable. From the value of the variable performing the following actions. But still can not get this operation, and wonder how I can accomplish this using the properties of TC, excluding for now the code(script). I hope I was clear... [I used the google translator to translate this message]1.5KViews0likes2Comments- 1.3KViews0likes0Comments
Re: Increment Loop
So ... I will show a picture to give a better example. Which is marked with a red circle is where I like to do the increment ... That action is called the routine itself, creating a kind of recursion ... Every time she was called, tables excel walked a position. Thus, do recursion until the checkpoint that FALSE. I wonder how this increase work ... He walk a position within Excel.1.3KViews0likes0CommentsIncrement Loop
Hello guys, I have a little doubt as to a data loop. I am using the Data-Drive Loop to fill the data from a certain page, what I do is I'm not getting an increase in the data. ex: Before filling in the data, I search to see if it has a membership on this name, if not, the TC begins to fill the data. In the end he comes back and search the same name that used to fill the data to verify that the registration was even created. The problem is: if this record already, I want the Loop skip a position, and search for the next name on the list, and so on until you find one that has not been registered. Is there any way to perform this action? I am using VBscript, TestComplete 9, recording tests directly in the browser. How to fill the database, I'm using Excel spreadsheet. I used Google Translate to translate, sorry any error.5.9KViews0likes4Comments