View pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.SpiceJet</groupId> | |
<artifactId>SpiceJetTicketBooking</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<properties> | |
<maven.compiler.source>1.7</maven.compiler.source> |
View PythonMain.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello") | |
# Main function | |
def main(): | |
print("I am Neptune") | |
# Using the main | |
if __name__=="__main__": | |
main() |
View String Reversal Using String Builder Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package JavaCoding; | |
import java.lang.*; | |
import java.io.*; | |
import java.util.*; | |
//ReverseString using StringBuilder Class | |
public class ReverseStrUsingStringBuilder { | |
public static void main(String[] args) |
View String Reverse Using CharAt Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.Scanner; | |
//java program to reverse a word | |
class ReverseString { | |
public static void main(String[] args) { | |
String oriString = "NeptuneWorld"; | |
String revString = ""; | |
char ch; |
View TestRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package TestAutomation.TestRunner; | |
import org.junit.runner.RunWith; | |
import cucumber.api.CucumberOptions; | |
import cucumber.api.junit.Cucumber; | |
//Cucumber Runner class | |
@RunWith(Cucumber.class) |
View SpiceJetStepDef.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package TestAutomation.StepDef; | |
import java.util.List; | |
import java.util.concurrent.TimeUnit; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; |
View SpiceJetTicketBooking.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Smoke | |
Feature: Book Ticket | |
I want to book Ticket in Spice Jet | |
@Test1 | |
Scenario: Book Ticket from Delhi to Bengaluru | |
Given I Open URL "https://www.spicejet.com/" and launch driver | |
When I search ticket from "Delhi" to "Bengaluru" Depart on "10-April-2021" return on "11-June-2021" | |
Then I close driver |
View Complete_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Libraries import | |
import speech_recognition as sr | |
import moviepy.editor as mp | |
# It will clip the video | |
# subclip(starttime, endtime) to clip portion of video | |
# you can remove the subclip to convert complete video | |
clip = mp.VideoFileClip(r"sample1.mp4").subclip(10, 100) | |
# It will write the audio in converted_audio.wav file. |
View audio_text_conversin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Libraries import | |
import speech_recognition as sr | |
# It will read audio file | |
audio = sr.AudioFile("Converted_audio.wav") | |
print("Audio file readed...") | |
# Here the magic start | |
# create an instance of recognizer as r | |
r = sr.Recognizer() |
View Video_audio_convertion.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Libraries import | |
import moviepy.editor as mp | |
# It will clip the video | |
# subclip(starttime, endtime) to clip portion of video | |
# you can remove the subclip to convert complete video | |
clip = mp.VideoFileClip(r"sample1.mp4").subclip(10, 100) | |
# It will write the audio in converted_audio.wav file. | |
clip.audio.write_audiofile(r"Converted_audio.wav") |
NewerOlder