-
Notifications
You must be signed in to change notification settings - Fork 32
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
Using requests for first iteration of automated webapp testing #615
Comments
@hdoupe, This is an impressive expansion in the testing of TaxBrain. Good work! My only question is shouldn't your testing procedures be added to the webapp-public repo? I see that you have added narrow specific tests for each failure you've found and that is great. Shouldn't the general testing framework you've created in your fork of webapp-public be merged into the main GitHub webapp-public repository? Or are you waiting for comments from the Continuum Analytics staff before doing that? |
@martinholmer Thanks, I'm just happy that I will not have to spend as much time manually populating fields in the TaxBrain GUI, manually uploading files, and manually checking answers with those from @martinholmer said
Yes I hope that some form of these testing procedures will be uploaded to the webapp-public repo. I am waiting on feed back from the Continuum Analytics staff before doing this. |
I'm closing #615. I think a better approach to testing for now is to continue beefing up the current test suite. |
Closed #615 |
In this issue, I am continuing the conversation in #602 about using requests to post data to TaxBrain.
@talumbau gave an excellent explanation for how data is posted to TaxBrain (and other websites):
I was able to use the requests library to post reforms both through the TaxBrain GUI interface and through the file upload interface. I had some difficulty retrieving the results from TaxBrain. I hoped that I would be able to retrieve the csv output but was unsuccessful. I found a hacky, short-term solution that pulls the results from the
taxbrain_taxsaveinputs
table indb.sqlite3
. Then, I called thetaxcalc.dropq.run_nth_year_tax_calc_model
function and formatted the results into the same format as the TaxBrain results. Finally, I compared the two results. All of this code is available in thereform_input_processing2
branch of mywebapp-public
fork.I ran this on a series of test cases here. The reform files passed, but the tests posting data to the GUI interface failed. This is likely because of issues such as #609, #607, #598, and #596.
I'm sure that there is a better way of doing this using mocked functions. However, I tried to throw this together quickly so that I could check the results from dropq with a little more certainty than simply comparing the TaxBrain results and the
taxcalc
results before the dropq algorithm is applied.What does everybody think of this approach? If everyone approves, I'll send an email to the Policy brains list with my findings as requested in
RELEASE_PROCESS.md
.@martinholmer @PeterDSteinberg @brittainhard @andersonfrailey @Amy-Xu @GoFroggyRun
The text was updated successfully, but these errors were encountered: