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

Autotests: Macro: Connection rules for CHEMS monomers #3806

Closed
AlexeyGirin opened this issue Dec 26, 2023 · 0 comments · Fixed by #4553
Closed

Autotests: Macro: Connection rules for CHEMS monomers #3806

AlexeyGirin opened this issue Dec 26, 2023 · 0 comments · Fixed by #4553

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Dec 26, 2023

Description:
These bunch of tests validates that system able to establish connections for CHEMS monomers
Related implementation tasks: #2925, #2883, #2334
Required monomers could be taken here: Monomers.zip

Test case1:

If a user tries to connect 2 monomers that have only identical free attachment points (for example, R1 and R1 or R2 and R2), a bond is created, and a message occurs.

Test case2:

If there is only one free attachment point (R1…Rn), a bond is created by default using only one existing possibility to connect to another monomer (no modal window appears).


For each %CHEMSType% from list: (R1) - Left only 
                                  (R2) - Right only
                                  (R3) - Side only 
                                  (R1,R2) - R3 gap 
                                  (R1,R3) - R2 gap 
                                  (R2,R3) - R1 gap 
                                  (R3,R4)          
                                  (R1,R2,R3)       
                                  (R1,R3,R4)       
                                  (R2,R3,R4)       
                                  (R3,R4,R5)       
                                  (R1,R2,R3,R4)    
                                  (R1,R3,R4,R5)    
                                  (R2,R3,R4,R5)    
                                  (R1,R2,R3,R4,R5) 

	For each %MonomerConnection% (avaliable connections of monomer)
		left it unoccupied and occupy the rest
		For each %Test-6-Ch-ConnectionPoint% of Test-6-P from (R1, R2, R3, R4, R5)
			Establish connection between Test-6-Ch(%ConnectionPoint%) and %CHEMSType%(%MonomerConnection%)
			Validate canvas

Test case3:

User drags a bond from the center of the first monomer to the specific AP of the second monomer.

For each %CHEMSType% from list: (R1) - Left only 
                                (R2) - Right only
                                (R3) - Side only 
                                (R1,R2) - R3 gap 
                                (R1,R3) - R2 gap 
                                (R2,R3) - R1 gap 
                                (R3,R4)          
                                (R1,R2,R3)       
                                (R1,R3,R4)       
                                (R2,R3,R4)       
                                (R3,R4,R5)       
                                (R1,R2,R3,R4)    
                                (R1,R3,R4,R5)    
                                (R2,R3,R4,R5)    
                                (R1,R2,R3,R4,R5) 
	For each %Test-6-Ch-ConnectionPoint% of Test-6-Ch from (R1, R2, R3, R4, R5)
		Establish connection between Test-6-Ch(center) and %CHENMSType%(%Test-6-Ch-ConnectionPoint%)
		Validate canvas (Dialog should appear)
		Select R1 of Test-6-Ch and establish connection
		Validate canvas (Connection should appear)

Test case4:

If selected attachment point is occupied, no bond is created, and warning message appears.

For each %CHEMSType% from list: (R1) - Left only 
                                  (R2) - Right only
                                  (R3) - Side only 
                                  (R1,R2) - R3 gap 
                                  (R1,R3) - R2 gap 
                                  (R2,R3) - R1 gap 
                                  (R3,R4)          
                                  (R1,R2,R3)       
                                  (R1,R3,R4)       
                                  (R2,R3,R4)       
                                  (R3,R4,R5)       
                                  (R1,R2,R3,R4)    
                                  (R1,R3,R4,R5)    
                                  (R2,R3,R4,R5)    
                                  (R1,R2,R3,R4,R5) 
	occupy all connections
	For each %ConnectionPoint% of Test-6-P from (R1, R2, R3, R4, R5)
		For each %CHEMSConnectionPoint% avaliable for %CHEMSType%
			Establish connection between Test-6-P(%ConnectionPoint%) and %CHEMSType%(center)
			Validate canvas (No connection established)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants