-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: master
Are you sure you want to change the base?
Conversation
- 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') |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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': |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) | ||
|
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 | ||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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]" |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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
No description provided.