[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x

Editors IDEs

24K

Solutions

19K

Contributors

Development in most programming languages is frequently done with an editor or integrated development environment (IDE). An IDE is a software application that provide comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. XCode, Visual Studio, Adobe Dreamweaver and Eclipse are some of the more popular development tools, but an editor or IDE can be anything from simple text editors to sophisticated programs. Related topics: All programming and development language, database and web based content management systems topics

Share tech news, updates, or what's on your mind.

Sign up to Post

How to install Selenium IDE and loops for quick automated testing.

Get Selenium IDE fromhttp://seleniumhq.org


  • Go to that link and select download selenium in the right hand column
  • That will then direct you to their download page.
  • From that page select to download the latest version of the selenium IDE

This extension will allow for the use of loops, goto and gotoIf's.

 

  1.  Launch Selenium IDE from Firefox and open the options menu within Options
  2.  Browse then Add the sideflow.js file to the "Selenium Core extensions (user-extensions.js)" field
  3.  Select OK
  4.  Close the IDE and then re-open it.

Adding-loop-js.jpg

  • The image above this is just an example of where you would want to add your loops.js file.

To set up a generic loop for testing enter the following values into the table.

 

Command: store | Target: Any Numerical Value | Value: Y
                                        Command: store | Target: 0 | Value: X
                                        Command: label | Target: target1 | Value:

 


  • The stored target for Y is how many times the loop will be performed.
  • To turn the recorder ON use the button in the top right corner.
  • Then with the recorder ON perform whatever action you wish to get automated within firefox.
  • As you perform certain actions you will notice it appearing in the driver.

Once that task has been completed, put the following at the bottom of the table.

 

Command: store | Target: ${X}+1  | Value:  X
                                        Command: gotoIf  | Target: ${X}<${Y}  | target1

Now the test is ready to be run with the loops. Here is a quick example of a simple test to run.

Basic-search-loop.jpgIn the example above, automation will perform a search on bing two times. This is of course just an example, you likely would not want to do this as part of your testing.


Another handy thing within Selenium IDE is that you can change your clipboard format.

Clipboard-format.jpgHere is a helpful link for additional documentation from Selenium: http://docs.seleniumhq.org/docs/02_selenium_ide.jsp

http://www.seleniumhq.org/

3
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
5
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project automates most of the tasks discussed in this article. You can even find instructions for debugging your native code with Eclipse.

This was inspired by Robert Green's article, Get Your Eclipse-Integrated NDK On!   Luckily, with the new R4 release of the Android Native Development Kit (NDK), the procedure has become much much easier.

Prerequisites

Download Cygwin from http://cygwin.org - ver. 1.7.5 is OK.  I recommend using the default installation directory: Install it in
    c:\cygwin  
Make sure that c:\cygwin\bin is added to PATH. I set the environment variable CYGWIN=nodosfilewarning to make Windows integration easier.

Download Android SDK from http://developer.android.com/sdk/index.html. Unpack it to a directory without spaces in the folder name. Follow the instructions on the SDK page to install JDK, Eclipse, and ADT plugin.

Download Android NDK from http://developer.android.com/sdk/ndk/index.html. Unpack to a directory without spaces. Set NDK_ROOT environment variable to point there.

Download Eclipse CDT (C Development Tools) from http://www.eclipse.org/cdt/.  Follow the instructions there to add CDT to your Eclipse.


Add project

0
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ...

Some objects defined and used in this source include:

   THTMLEvent
   THTMLElement
   THTMLTxtRange
   THTMLStyleSheet
   THTMLDocument
   THTMLTable , ....


Steps to use this code:

1

Put a TWebBrowser component on your form.

2

Put a TButton component on your form.

3

Define an instance of THTMLDocument:
THTMLDocument document; //in global scope

Open in new window

4

In your OnButtonClick event, write this code:
WebBrowser1->Navigate("http://www.google.com");  // test with this URL

Open in new window

5

In your OnWebBrowser1DocumentComplete handler, write this code:
document.webBrowser = WebBrowser1;

Open in new window

6

Now the document object is ready to use.
Sample usage:
THTMLElement elm = document.getElementById("gog");
ShowMessage(elm.innerHTML);

Open in new window

7

For event handling needs, define a global instance of THTMLElement:
THTMLElement myElm;

Open in new window

8

In your OnWebBrowser1DocumentComplete handler, write this code:
document.webBrowser = WebBrowser1;
myElm = document.getElementById("gog");
myElm.onclick = &OnClick;

Open in new window

9

OnClick defines as:
In public section of TForm1 write:
void OnClick();

Open in new window

...and in the CPP file write:
void TForm1::OnClick()
{
     THTMLEventObj event = document.parentWindow.event;
     ShowMessage(event.x); // mouse pos
     ShowMessage(event.ctrlKey); // if ctrl pressed
     event.returnValue = 0; // for cancel event
...
}

Open in new window

Notes:
Supported: BCB 2009, 2010
Not supported BCB XE yet;

Files:
html.cpp
html.h
1
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into.

One of these problems is selecting and deleting columns of text, as opposed to the normal way of selection. One, rather tedious way of getting around this is pasting your text into Excel or a similar spreadsheet tool, and converting the text to columns. To select a rectangular area of text in Programmer's Notepad, simply hold down the "Alt" button and drag. Now you can easily get rid of rogue spaces and characters.

Often web developers and other programmers who have to port code between platforms run into the problem of line endings. The difficulty with this problem is that we are trying to correct a character that is invisible.  With Programmer's Notepad, there is a small button in the bottom left hand corner that will display symbols at the end of each line, telling you whether you're using carriage return, line feed or both.  What's more, when you save your code file, there is an option in the save dialog to change the type of line break used, so you need never worry about multi-platform development again.  The same options are available for encoding, file formats

There are many more features of Programmer's Notepad that I haven't mentioned. You should note that it will automatically detect the language you're using, and colour-code accordingly, whether you're …
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Just a note:  
Most programmer-oriented text editors (not just the one reviewed here) offer columnar/rectangular selection handling.  For instance, Microsoft's Visual Studio lets you use Alt+Shift drag to select a rectangular section of the text, and it also provides a keyboard-only method (Press Alt+Shift, then use the arrow keys to expand the selection.)  
0
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory.
Sometimes the understanding of the memory structure of the C++ class may help in the modern design.
I have to mention that I work with Microsoft Visual Studio and all code posted here was written for this compiler. More then it, I guess that the object memory layout can be different from the one I'm showing here, if you use another compilers. Some "tricks" you will see here are dangerous enough to be used in the production code. It is good to know, nice to understand, but to use such tricks in the real projects... from my point of view it smells very bad.
The following application shows the size of few a trivial objects:
#include <Windows.h>
#include <stdio.h>

class CEmpty
{
};

class C1Int
{
	int x;
};

class C2Int
{
	int x;
	int y;
};

class C3Int
{
	int x, y, z;
};

class CInt
{
	int x;
public:
	CInt() : x(0) {}
};

class CIntDerived: public CInt
{
	int y;
public:
	CIntDerived() : y (0) {}
};

class CCharArray
{
	char x[24];
};

class CStr
{
	char x[24];
public:
	CStr()
	{
		strcpy(x, "Hello");
	}
};

int main()
{
	CEmpty empty;

	C1Int one;
	C2Int two;
	C3Int three;

	CInt simple;
	CIntDerived derived;

	CCharArray charArray;
	CStr str;

	printf("Size of CEmpty object is %d\r\n", sizeof(empty));

	printf("Size of 

Open in new window

3
 

Expert Comment

by:nagireddyA
Comment Utility
very nice article
u did good job
0
 
LVL 33

Author Comment

by:pgnatyuk
Comment Utility
Thanks you

0

Editors IDEs

24K

Solutions

19K

Contributors

Development in most programming languages is frequently done with an editor or integrated development environment (IDE). An IDE is a software application that provide comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. XCode, Visual Studio, Adobe Dreamweaver and Eclipse are some of the more popular development tools, but an editor or IDE can be anything from simple text editors to sophisticated programs. Related topics: All programming and development language, database and web based content management systems topics

Top Experts In
Editors IDEs
<
Monthly
>