Saturday, 27 June 2020

Trends & Opportunities

In this competitive world it feels necessary to keep up with the "Trend" which ever field it may be and in my view it includes human relations as well, but for now I will stick to current situation. 

I am not an active person on social media although I tend to keep accounts in all of them to understand what / how / why these work and to keep up to the "Trend" so I am more of an window shopper on social networking, but on a professional side I tend to get on to Linkedin quite frequently and now a days I've been noticing people profiles updated with new skills and certifications to keep up to the emerging tech, and a shift in the way the organisations communicate, work and create opportunities. It feels like the current situation we are in might have pushed everyone to explore new ways, which I believe is the right thing to do.

The question is

How much of this keeping up to the Trend is actually creating an opportunity?

OR

Whether the opportunity finds you, if you are keeping up to the Trend?

OR

Identify an opportunity that creates a Trend for the rest to follow?

                                 

So..what is your answer? and where do you fit in? and what you want to be? in this current situation or the new normal.


"Is Trend an enabler for opportunity?" 
OR
"Is Opportunity an enabler for Trend?"

I think there are more questions than answers and I believe the situations will push you to find your answers and its different for everyone whether its an Individual or an Organisation and the current situation we are in has definitely pushed everyone to "Create a Trend" or "Create an opportunity" at their own levels.

I see a lot of learning happening at the individual front which is creating a healthy, positive and competitive spirit among people to explore their capabilities and push themselves, which was somewhat hard in our old normal with long commutes, traffic jams or its just excuses we make of these. This current situation has created a new trend in every individual to explore their potential and create great opportunities for themselves or create opportunities that became a trend for others to follow. so keep learning and exploring what ever the situation be.

Organisations have realized that flexibility is more than just a word in their Job adverts, its nice to see them adopt to flexible working and appreciate that this working model can actually be more productive and "its possible" to keep running their business (I appreciate that its not practical for all business), so this is the new trend, organisations setting an example to others to follow and create and explore opportunities.

"Question the situation to find your answers and you create a Trend or an Opportunity" 

Sunday, 1 April 2012

Risk Management:

This is all about 3 main features 

1. Risk Identification. 
2. Risk Analysis.
3. Risk Mitigation.

Risk - This has become the most burning topic in most industries so what is it?

Risk: “The combination of the chance of an event and its consequences.” [ISO N2198]

To say in simple terms, Identify the Risk (ASAP), analyse the Risk (Likelihood of happening and its Impact if it happens), try to prevent the Risk (Mitigate).

Lets see how we put all these 3 features into a template (document)

Wednesday, 21 December 2011

Selenium with C# - C# code for Drag and Drop

Found this bit of code on Google search  when trying to Automate the Drag and Drop functionality on a web browser-- Thanks for the original coder.

Need to add - using OpenQA.Selenium.Interactions; //(assembly)

IWebElement sourceElement = driver.FindElement(By.CssSelector("li.dimension.attribute")); //Defining the source element to select the filed
IWebElement targetElement = driver.FindElement(By.CssSelector("div.landing-zone")); //Defining the Target element to drop the field
Actions action = new Actions(driver); //
action.DragAndDrop(sourceElement, targetElement).Perform(); //drag&drop

Thursday, 10 November 2011

Selenium with C# using MonoDevelop

Selenium


Selenium with C# using MonoDevelop


Since commercial tools being costlier to maintain in terms of licensing and various other factors, We (Our Team) have decided to go for another alternative which is some what similar to MSVS and we figured out MonoDevelop would be a good option and it is absolutely free!!!!


I have successfully installed it made it running for our selenium C# scripts and its really fantastic tool with build in unit test runner rather than having separate NUnit for MSVS.


If someone who wants to try Selenium and would like to execute their scripts in C# I would suggest this would be a good option.


Below are the steps to follow to start your Selenium C# project using MonoDevelop


Getting MonoDevelop:


1. Download the MonoDevelop for your operating system, Packages and Source Code.
2. Try to run the MonoDevelop-2.8.1.msi, you might encounter a warning.



3. Stop the installation and try to install the gtk-sharp-2.12.10.win32.msi
4. After Installing gtk-sharp-2.12.10.win32.msi try to run the MonoDevelop-2.8.1.msi and you might again encounter another error.


5. Download and Install .Netframework 4 
6. After Installing .Netframework 4, install Windos Software Development kit 
winsdk_web.exe downloaded from the MonoDevelop package.
7. Now run the MonoDevelop-2.8.1.msi and it should be installed without warnings or errors.
8. Go to Start All Programs and double click the MonoDevelop Icon to launch the application.



That looks Cool right!!!! --- If you want explore more about MonoDevelop get on to their website - http://monodevelop.com/

OK our next step is to create a project and get Selenium integrated to it.

Create a new solution in Monodevelop as shown below by selecting the under File -> New-> Solution

Once the solution is selected, new solution is opened. Select Empty Project (C#)


Give a name for the solution and browse to the location where you want to save the project. After the location is specified. click on the forward button and tick the check box for 'GTK# Support'


Click on OK and your solution is created which can be viewed in the solution explorer.


Now its time get your selenium webdrivers


"In order to create scripts that interact with the Selenium Server (Selenium RC, Selenium Remote Webdriver) or create local Selenium WebDriver script you need to make use of language-specific client drivers. Unless otherwise specified, drivers include both 1.x and 2.x style drivers."

"While drivers for other languages exist, these are the core ones that are supported by the main project." --- Extract from seleniumhq.org

After downloading the client drivers, copy over the files to the project directory where the solution is created.

Now in Monodevelop select references under the solution and right click to edit references


Select .Net Assembly tab in the Edit References window and navigate to the project location where the Selenium C# drivers are copied.

Select the following and click on Add button to add to the selected references:

Selenium.WebDriverBackedSelenium.dll
ThoughtWorks.Selenium.Core.dll
WebDriver.dll
WebDriver.Support.dll

Select the All tab in the Edit References and the following references 

nunitcore
nunit.framework
System

After all the required references are added click on OK.
(Please note you may need to add more references depending on the requirements of the script under execution)

Now its time to record a script and convert it to C# and execute it using MonoDevelop.

Record a simple script using Selenium IDE

After recording the script, play it back again and see the script is executed successfully.

Export the script as C# Webdriver from the Selenium IDE

Save the file in any desired location or with in the project file as .CS file.

Now add the file to the solution.



Check that your script is added to the solution, double click on the script to view. 


To Be Continued.......