Thursday, August 29, 2024

Selenium

Components of Selenium

  1. Selenium IDE
  2. Selenium RC
  3. Selenium Webdriver - communicated with Browser
  4. Selenium Grid
Limitations
  1. Image not supported
  2. no reports
  3. No RestAPI or Database support
  4. No Mobile testing
  5. Can not handle popup
  6. Dynamic content????
WebDriver Capabilities (not not in RC):
  1. multiple frames
  2. pop-ups
  3. browser windows
  4. alerts
  5. page navigation
  6. drag & drop
  7. Ajax
Object Repository
Wait:
  1. Implicit - wait for
  2. Explicit
    1. WebDriver wait
    2. Fluent wait
Locators types
  1. id
  2. name
  3. link Text
  4. Partial Link Text
  5. CSS Selector
  6. xpath
FindElement/elements
  1. driver.findElement(By.id("")
Size of the Window
  1. maximize()
  2. getSize()
  3. setSize()
  4. JavaScriptExecutor: executeScript - executeAsyncScript - for scroll
POM - Page Object Model
Page Factory

Action Class - mouse/keyboard
drag and drop, control key

Alerts
  1. void dismiss()
  2. void accept()
  3. String getText()
  4. void sendKeys(String stringToSend)
Robot (Native) - mouse & keyboard
  1. upload files
  2. keyPress()
  3. keyRelease()
  4. MouseMove()
  5. MousePress()
  6. mouseRelease()
Screenshot
  1. File src = ((TakeScreenshot)driver)getScreenshotAs(OutputType FILE);
Window Handle
  1. get.windowhandle()
  2. get.windowhandles()
  3. set
  4. switch to
  5. action
Listeners

  1. Event Listeners
Assert and verify
Proxy
String PROXY="192.168/0.0:4444";
Capability.setCapability(CapabilityType.PROXY,proxy)
Network Latency = driver.manage.pageLoadingTime()
Serversidelog: java -jar.jar -log selenium.log

Exceptions:
  1. WebDriverException
  2. NoAlertPresentException
  3. NoSuchElementException
  4. NoSuchFrameException
  5. NoSuchWindowException
  6. Timeout

driver.switchTo.frame() - name, number

Tuesday, April 16, 2024

1x1 beacon pixel based companies

  1. Google Analytics
  2. Adobe Analytics
  3. Facebook Pixel
  4. https://rebrandly.com/
  5. https://documentation.solarwinds.com/en/success_center/loggly/content/admin/tracking-pixel.htm
  6. Atlas, OAS, OpenX, AdTech

Thursday, March 14, 2024

Drik Panchang

 https://www.drikpanchang.com/

https://www.youtube.com/watch?v=ijL9E7mWwes

https://en.wikipedia.org/wiki/Tamil_calendar

https://en.wikipedia.org/wiki/Hindu_astrology

https://en.wikipedia.org/wiki/Drigganita


  1. Tithi: The lunar day at sunrise
  2. Vaara: The day from sunrise to sunrise
  3. Nakshatra: The lunar mansion occupied by the moon at sunrise 
  4. Yoga: A measure of how far the sun and moon are from each other 
  5. Karana: Half a lunar day, with each Tithi having two Karanas
These five are :
1. Day of Week (each day is ruled by a planet), also called Vaara
2. Nakshatra (star or constellation in which Moon is transiting)
3. Tithi (moon phase, with respect to Sun’s position)
4. Karana (half a lunar day) (each Tithi has 2 Karanas)
5. Yoga (a special calculation for the separating distance of the Sun and Moon)

27 Nithya Yogas in Panchangam

1. VISHKAMBHA (Supported) — prevails over others, victorious over enemies, obtains property, wealthy.
2. PRITI (Fondness) — well-liked, attracted to the opposite sex, enjoys life with contentment.
3. AYUSHMAN (Long-lived) — good health and longevity, energetic.
4. SAUBHAGYA (Good Fortune) — enjoys a comfortable life full of opportunities, happy.
5. SOBHANA (Splendor) — lustrous body and demeanor sensualist, obsessed with sex.
6. ATIGANDA (Danger or obstacles) — difficult life due to numerous obstacles and accidents; revengeful and angry.
7. SUKARMA (Virtuous) — performs noble deeds, magnanimous and charitable, wealthy.
8. DHRITI (Determination) — enjoys the wealth, goods and spouses of others; indulges in the hospitality of others.
9. SOOLA Spear, Pain) — confrontational and contrary, quarrelsome, angry.
10. GANDA (Danger or obstacles) — flawed morals or ethics, troublesome personality.
11. VRIDDHA (Growth) — intelligent, opportunistic and discerning; life constantly improves with age.
12. DHRUVA Constant) — steady character, able to concentrate and persist, wealthy.
13. VYAGATHA (Beating) — cruel, intent on harming others.
14. HARSHANA (Thrilling) — intelligent, delights in merriment and humor.
15. VAJRA (Diamond, Thunderbolt) — well-off, lecherous, unpredictable, forceful.
16. SIDDHI (Success) — skillful and accomplished in several areas; protector and supporter of others.
17. VYATAPATA (Calamity) — prone to sudden mishaps and reversals, fickle and unreliable.
18. VARIYAN (Comfort) — loves ease and luxury, lazy, lascivious.
19. PARIGHA (Obstruction) — encounters many obstacles to progress in life; irritable and meddlesome.
20. SIVA (Auspicious) — honored by superiors and government, placid, learned and religious, wealthy.
21. SIDDHA (Accomplished) — accommodating personality, pleasant nature, interest in ritual and spirituality.
22. SADHYA (Amenable) — well behaved, accomplished manners and etiquette.
23. SUBHA (Auspicious) — lustrous body and personality, but problems with health; wealthy, irritable.
24. SUKLA (Bright White) — garrulous and flighty, impatient and impulsive; unsteady and changeable mind.
25. BRAHMA (Priest, God) — trustworthy and confidential, ambitious, good discernment and judgment.
26. INDRA (Chief) — interest in education and knowledge; helpful, well-off.
27. VAIDHRITI (Poor Support) — critical, scheming nature; powerful and overwhelming mentally or physically.

11 Karanas in Panchangam (7 Fixed, 4 Movable)

Karana is ½ a Tithi or Moon Phase.
There are four Fixed Karanas and they occur only once in a month.
There are seven Moveable (Recurring) Karanas and they occur eight times during the lunar month.

4 Fixed Karanas in Panchang

1. Shakuni : The person of this Karana will be calm, composed, intelligent, gifted with intuition and full of good deeds.
Its ruling deity is Garuda (eagle). Shakuni Karana falling in the night in the 14th day of the dark moon is suitable for hold-ups, committing theft and the like crimes, driving away enemies and soldiers, taming birds, starting medication and all kinds of war operations.
2. Chatushpada : The person of this Karana will do independent business, take great pains in work and will be truthful.
Its ruling deity is Vrishabha (Bull). This Karana falling on Amavasya (New Moon) is suitable for vanquishing enemies through Tantric methods. It gives success in all business related to four footed animals, particularly cattle. Shraddha and Tarpanam work done in this karana also gives quite good results.
3. Naga : The person of this Karana will be a specialist and successful in professions connected with minerals. Will
be of good character and capable of mesmerizing and catching snakes.
Its ruling deity is Naga (deified form of serpent). Naga Karana falling in Amavasya (New Moon) is more suited for destructive and subversive acts.
4. Kaustuva or Kimstughna : Persons of this Karana are intelligent but may be bent on doing bad deeds; are heartless, unpopular and may suffer much in life.
Its ruling deity is Kubera (Lord of wealth). This karana falling on Sukla Paksha Pratipada (1st day of Waxing Moon Phase) causes Vaisvadeva Yoga ,which is held to be the best karana for doing any work.

7 Moveable (Recurring) Karanas in Panchang

  1. Bava : People born in this Karana will be poor but will be kind and content with what they get. They will be successful if they pursue a career with the Army.
  2. Balava : The person born in this Karana will be handsome, courageous, sacrificing and will be interested in sports and extra-curricular activities.
  3. Kaulava : Those born in this Karana will be intent on doing bad deeds as their earlier environment was not congenial to molding a good character.
  4. Taitila : The person born in this Karana will be soft hearted, even tempered and with strong convictions. Constitutionally the person will be strong.
  5. Gara : The person of this Karana will be a good strategist, imaginative and talkative.
  6. Vanija : The person of this Karana will have good business acumen and will be capable of succeeding in any type of business.
  7. Vishti: The person of this Karana will be heartless, without friends and will be bent on doing bad deeds.

Thursday, February 29, 2024

Driving

 Looking for contour map of driving time from various places
We can pick the top 10 MSA and get time to all of them, can we draw contour map? Or write the time on each in straight line

Leap Year

Today is February 29th - leap year

There are lot of math and astronomy that can be taught to students today

(Astronomy is science, right? May be a specialization of Physics)

Examples:

1) When you have a large group of people, there will be one birthday person for every 365 people. While only 1 in 1461 birthday person today

2) Younger kids we can discuss, earth going around the sun in 365 days. Older kids, we can tell the same info in seconds and discuss the number not dividing in whole number for 24 hours. You can also discuss the correction every 100 years and the other correction that happens every 400 years

3) You can introduce types of calendars used in society - solar & lunar. Discuss what every calendar/months you follow traditionally

Additional resources:

https://www.jpl.nasa.gov/edu/teach/activity/leap-day-math/

https://en.wikipedia.org/wiki/Leap_year

Thursday, February 22, 2024

Docker

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g python -o /local/out/python

docker pull mcr.microsoft.com/playwright:v1.41.1-jammy


maven:3.3.3-jdk-8


Browser Automation

  1.  Playwright
  2. AVA
  3. node.js
  4. Allure Report
  5. Extent Report
  6. Docker for Playwright



java

Java Class

# Exception
# Object Reference
# Applet/JFC/Commandline
# static
# Events
# Threads
# interface
# Abstract
# Design Pattern
## Singleton
## MVC http://www.oracle.com/technetwork/articles/javase/mvc-136693.html
##
# package
# IO
# Date & Time
# Cloning
# Inner Class
# Collections
# Generics
# Components
# I18N
# XML/SAX
# JAX-WS
# JDBC
# RMI
# XML/JAXP
# Servlet
# JSP
# Annotations
# Session EJB (Stateless)
# Session EJB (Stateful)
# Entity EJB
# MDB
# final
# super
# this


==Classes==
# java.lang.System.out.println
# java.lang.System.out.print
## java.io.PrintStream
# java.applet.Applet
# java.awt.Graphics
#

### public static void main(String[] args) {}

Advertising ID

 Advertising ID

Data Management Platforms

  1. LiveIntent
  2. LiveRamp
  3. Lotame
  4. Tapad


  1. Oracle BlueKai Data Management Platform
  2. Salesforce Audience Studio
  3. TransUnion Neustar Data Onboarding


Campaign Lift Measurement

NBCU Brand Measurement certification

  1. brand lift
  2. purchase intent
  3. brand awareness
Brand Measurement Partners
  1. Dynata
  2. Kantar
  3. LoopMe
  4. Lucid
  5. MarketCast
  6. Disqo
NBCU: Measurement that quantifies the extent to which individual media campaigns influence incremental brand lift across metrics like brand awareness, favorability, and purchase intent

Included in our evaluation criteria:
  1. Data quality such as strength of the survey solution and exposure inputs
  2. Solution readiness such as analytics, deliverables, and market presence
  1. Services
    1. Media planning and buying
      1. Campaign management and optimization
    2. Measurement
      1. Audio measurement
      2. Video measurement
      3. Audience measurement
      4. Audience verification
      5. Brand measurement
      6. Advertising effectiveness
      7. Reporting and analytics
    3. Other services
      1. Data integration
  2. Products
    1. Ad products
      1. Sponsored Brands
      2. Sponsored Display
      3. Video ads
      4. Audio ads
    2. Ad Tech
      1. Amazon DSP
      2. Amazon Ad