Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Automated Testing System #181

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

ayusam
Copy link

@ayusam ayusam commented Jul 5, 2019

No description provided.

@ayusam ayusam added the enhancement New feature or request label Jul 5, 2019
@ayusam ayusam self-assigned this Jul 5, 2019
ayusam added 4 commits July 10, 2019 19:41
- Testing scripts
- Automation scripts
- All resources
- Report generating scripts
driver.back()
sleep(1)
elif subSection == mainappMenu[menu][section] -1 and game%2 == 1:
points,result = testingOperationObject.find_matches(driver,gamePath+'close.png')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain why game%2


class testingOperation:
# base template device resolution width and height based on portrait mode
base_w = 2560

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention the device name used as base template device for KitKitSchool

return driver

def main(self):
toolSection=[1,1,2,2,3,1,0,0]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does array elements represent

sleep(2)
result =testingOperationObject.wait_for_extraction(driver)
sleep(8)
# if result or noreset == 'true':
Copy link

@SoniaChhabria SoniaChhabria Jul 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncomment the code

base_w = 2560
base_h = 1440
base_dpi_w = 537.882
base_dpi_h = 532.983

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain why we are using dpi

print("Pass")
driver.find_element_by_id(id).click()
sleep(1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide vector information

points = self.find_matches(driver,self.template+r"\coin.png")
def main(self):
toolSection=[1,1,2,2,3,1,0,0]
arg1 = sys.argv[1]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain elements in toolSection array

points = self.find_matches(driver,os.path.join(self.template,'toolSection',str(itr+1),'')+str(itr2+1)+'.png')
self.click_elements(points,driver)
sleep(1)
if itr < 5:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why <5 add a comment

echo off
echo combined output > output.txt
set /A i=0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is /A

echo combined output > output.txt
set /A i=0

setlocal enableDelayedExpansion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain this

print(mainDir)
totalTestCases = 94
fromaddr = "[email protected]"
toaddr = "[email protected]"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove [email protected] and write Add from Email address here. Similarly do for To address

s.ehlo()
print("loggedin")
# Authentication
s.login(fromaddr, "szskykzrmndgxpqx")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention add App password here

'source': ['-','Pass','Fail']})

# # expected result
# img = cv2.imread(self.path+'\expected_result\output_t'+str(resultTableIndex-9)+'.png')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the commented code needed? If yes, uncomment it


# # expected result
# img = cv2.imread(self.path+'\expected_result\output_t'+str(resultTableIndex-9)+'.png')
# img = cv2.resize(img,( 564,399))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the commented code needed? If yes, uncomment it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants