Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So the thing is I have created an instagram bot using Python & Selenium. So I am crawling instagram and it does sh*t done.

Now the question is how can i write functional/UI Test cases so that i can be sure that the functionality is intact? I cannot just create random users everytime bcs its instagram ;).

What I have tried:

Nothing as of now.... I have no idea about how to implement testing in the codebase. Also what to test yet is not being clear to me.
Posted
Updated 31-Aug-19 10:26am
Comments
Night Fox Localhost 14-Sep-19 13:23pm    
Would like to know more on what doesn't work for you!

1 solution

Quote:
how can i write functional/UI Test cases
That is what Selenium is there for, it is not only a bot maker framework.

You can write the scripts to test the UI for your application. If you want to unit test the application, then you might want to check other frameworks for Python testing. Packages such as unittest can help you in this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900